Skip to content

Commit 51fb5b0

Browse files
committed
Get rid of duplicate definitions that trip up typescript
Two variables in QueryEditor.tsx were duplicated (and identical): isInDashboard and getTimeStampColumnName. This change deletes the second one, which makes typescript happy.
1 parent b8983b2 commit 51fb5b0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/QueryEditor.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ export const QueryEditor = ({ query, onChange, onRunQuery, datasource, app, data
3232
setIsLoading(isLoading.slice(1));
3333
};
3434

35-
const isInDashboard = useMemo(() => app === 'panel-editor', [app]);
36-
37-
const getTimeStampColumnName = () => {
38-
return datasource.instanceSettings?.jsonData?.timestamp_column || '_timestamp';
39-
};
40-
4135
useEffect(() => {
4236
startLoading();
4337
getOrganizations({ url: datasource.url, page_num: 0, page_size: 1000, sort_by: 'id' })

0 commit comments

Comments
 (0)