diff --git a/packages/nc-gui/components/nc/MenuItem.vue b/packages/nc-gui/components/nc/MenuItem.vue index a049f0f19f..c7561b2086 100644 --- a/packages/nc-gui/components/nc/MenuItem.vue +++ b/packages/nc-gui/components/nc/MenuItem.vue @@ -4,9 +4,9 @@ * - **Issue**: When conditionally rendering `NcMenuItem` using `v-if` without a corresponding `v-else` fallback, * Vue may throw a * `NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.`. - * + * * - This issue occurs specifically when the `NcMenu` is open, and the condition changes dynamically (e.g., during runtime state changes) - * + * * - **Fix**: Use `v-show` instead of `v-if` when no replacement (fallback) node is provided. This keeps the element * in the DOM but toggles its visibility, preventing the DOM manipulation issue. */ diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue index f3674b4097..ef100d2db9 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ViewActionMenu.vue @@ -134,9 +134,9 @@ const onDelete = async () => { * - **Issue**: When conditionally rendering `NcMenuItem` using `v-if` without a corresponding `v-else` fallback, * Vue may throw a * `NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.`. - * + * * - This issue occurs specifically when the `NcMenu` is open, and the condition changes dynamically (e.g., during runtime state changes) - * + * * - **Fix**: Use `v-show` instead of `v-if` when no replacement (fallback) node is provided. This keeps the element * in the DOM but toggles its visibility, preventing the DOM manipulation issue. */ diff --git a/packages/nc-gui/composables/useSharedFormViewStore.ts b/packages/nc-gui/composables/useSharedFormViewStore.ts index 3dad11c6cd..32413b57f5 100644 --- a/packages/nc-gui/composables/useSharedFormViewStore.ts +++ b/packages/nc-gui/composables/useSharedFormViewStore.ts @@ -441,8 +441,6 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share async function handlePreFillForm() { if (Object.keys(route.query || {}).length) { - // Decode query parameter keys - columns.value = await Promise.all( (columns.value || []).map(async (c) => { const queryParam = route.query[c.title as string] || route.query[encodeURIComponent(c.title as string)] @@ -458,7 +456,6 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share ) { return c } - const decodedQueryParam = Array.isArray(queryParam) ? queryParam.map((qp) => decodeURIComponent(qp as string).trim()) : decodeURIComponent(queryParam as string).trim()