v4.2 (#217)
* fix: chat module link * fix: url fetch check * fix: import file ui * feat: app logs * perf: iframe icon * imgs cdn * perf: click range and pg
This commit is contained in:
@@ -10,6 +10,6 @@ export const dispatchHistory = (props: Record<string, any>) => {
|
||||
const { maxContext = 5, history = [] } = props as HistoryProps;
|
||||
|
||||
return {
|
||||
history: history.slice(-maxContext)
|
||||
history: maxContext > 0 ? history.slice(-maxContext) : []
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user