From 5572e22f3e071df0b6d3e8f47c05214bc31d0144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hornych?= Date: Thu, 28 Sep 2023 09:32:54 +0200 Subject: [PATCH] fix: data grid infinite startup loading --- src/components/lab/editor/data-grid/LabEditorDataGrid.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/lab/editor/data-grid/LabEditorDataGrid.vue b/src/components/lab/editor/data-grid/LabEditorDataGrid.vue index eaeccd68..cdd0ed50 100644 --- a/src/components/lab/editor/data-grid/LabEditorDataGrid.vue +++ b/src/components/lab/editor/data-grid/LabEditorDataGrid.vue @@ -21,12 +21,13 @@ import CodemirrorOneLine from '@/components/base/CodemirrorOneLine.vue' import { QueryLanguage } from '@/model/lab' import CodemirrorFull from '@/components/base/CodemirrorFull.vue' import { Toaster, useToaster } from '@/services/editor/toaster' -import { TabComponentProps } from '@/model/editor/editor' +import { TabComponentEvents, TabComponentProps } from '@/model/editor/editor' const dataGridConsoleService: DataGridConsoleService = useDataGridConsoleService() const toaster: Toaster = useToaster() const props = defineProps>() +const emit = defineEmits() // static data const path = ref([ @@ -99,7 +100,7 @@ const propertyDetailValue = ref('') const initialized = ref(false) - +emit('ready') onBeforeMount(() => { // note: we can't use async/await here, because that would make this component async which currently doesn't seem to work // properly in combination with dynamic rendering and tabs