Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrinjenson committed Sep 8, 2023
1 parent 34066ad commit 813b0a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/pages/Query/QueryCodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ const QueryCodeEditor: FC = () => {
const query = sanitseSqlString(inputQuery);

resetData();
notifications.show({
id: 'load-data',
loading: true,
color: '#545BEB',
title: 'Running Query',
message: 'Data will be loaded.',
autoClose: false,
withCloseButton: false,
});
let LogQuery = {
startTime: subLogQuery.get().startTime,
endTime: subLogQuery.get().endTime,
Expand Down
1 change: 0 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Field } from '@/@types/parseable/dataType';
import dayjs from 'dayjs';

export const wait = (sec = 1) => new Promise<void>((res) => setTimeout(res, sec * 1000));
Expand Down

0 comments on commit 813b0a6

Please sign in to comment.