Skip to content

Commit b8983b2

Browse files
authored
Merge pull request #11 from openobserve/feat/edit_dashboard_panel
fix: type error
2 parents 45a53e2 + c09c639 commit b8983b2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/QueryEditor.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ 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+
3541
useEffect(() => {
3642
startLoading();
3743
getOrganizations({ url: datasource.url, page_num: 0, page_size: 1000, sort_by: 'id' })

0 commit comments

Comments
 (0)