We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d214eee commit c3228d7Copy full SHA for c3228d7
src/store/reducers/executeQuery.js
@@ -34,7 +34,10 @@ const initialState = {
34
input: '',
35
history: {
36
queries: queriesHistoryInitial.slice(sliceLimit < 0 ? 0 : sliceLimit),
37
- currentIndex: -1,
+ currentIndex:
38
+ queriesHistoryInitial.length > MAXIMUM_QUERIES_IN_HISTORY
39
+ ? MAXIMUM_QUERIES_IN_HISTORY - 1
40
+ : queriesHistoryInitial.length - 1,
41
},
42
runAction: RUN_ACTIONS_VALUES.script,
43
monacoHotKey: null,
0 commit comments