From 95b239c6f766e649ee556b97163bf9b676f5ac31 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sun, 26 Mar 2023 16:28:28 +0300 Subject: [PATCH] fix: missing injection warning on kanban select fields Signed-off-by: mertmit --- packages/nc-gui/components/cell/MultiSelect.vue | 2 +- packages/nc-gui/components/cell/SingleSelect.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index d77f29ba47..ebef31bd75 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -283,7 +283,7 @@ const onTagClick = (e: Event, onClose: Function) => { } } -const cellClickHook = inject(CellClickHookInj) +const cellClickHook = inject(CellClickHookInj, null) const toggleMenu = () => { if (cellClickHook) return diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index 51c1554bb2..a06abbaa9b 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -209,7 +209,7 @@ const onSelect = () => { isOpen.value = false } -const cellClickHook = inject(CellClickHookInj) +const cellClickHook = inject(CellClickHookInj, null) const toggleMenu = (e: Event) => { // todo: refactor