Skip to content

Commit

Permalink
feat: remove logs when toggle pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaans committed Oct 16, 2023
1 parent 3b67934 commit db16f1f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions frontend/widgets/src/QueryApi.IndexerStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ if (
(prevV2ToggleSelected !== state.v2Toggle)
) {
Storage.privateSet("QueryApiV2Toggle", state.v2Toggle);
State.update({
logs: [],
state: [],
indexer_res: [],
indexer_resCount: 0,
logsCount: 0,
stateCount: 0,
indexer_resPage: 0,
logsPage: 0,
statePage: 0,
})
fetchGraphQL(logsDoc, "QueryLogs", {
offset: state.logsPage * LIMIT,
}).then((result) => {
Expand Down

0 comments on commit db16f1f

Please sign in to comment.