Skip to content

Commit 421e30c

Browse files
fix: copilot review 3
1 parent 78b4681 commit 421e30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/reducers/query/useQueriesHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function useQueriesHistory() {
8585
const saveQueryToHistory = useEventHandler((queryText: string, queryId: string) => {
8686
setQueries((currentQueries) => {
8787
const newQueries = [...currentQueries, {queryText, queryId}].slice(
88-
historyQueries.length >= MAXIMUM_QUERIES_IN_HISTORY ? 1 : 0,
88+
currentQueries.length >= MAXIMUM_QUERIES_IN_HISTORY ? 1 : 0,
8989
);
9090
saveHistoryQueries(newQueries);
9191

0 commit comments

Comments
 (0)