diff --git a/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue b/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue index cbc9bdd0ae..47febc5caa 100644 --- a/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue +++ b/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue @@ -94,14 +94,14 @@ const unlinkRef = async (rec: Record) => { -
+
diff --git a/packages/nc-gui-v2/composables/useLTARStore.ts b/packages/nc-gui-v2/composables/useLTARStore.ts index 81f92b0a4d..fe3791f736 100644 --- a/packages/nc-gui-v2/composables/useLTARStore.ts +++ b/packages/nc-gui-v2/composables/useLTARStore.ts @@ -150,19 +150,33 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState( try { if (colOptions.type === 'bt') return - childrenList.value = await $api.dbTableRow.nestedList( - NOCO, - (project?.value?.id || sharedView?.value?.view?.project_id) as string, - meta.value.id, - rowId.value, - colOptions.type as 'mm' | 'hm', - encodeURIComponent(column?.value?.title), - { - limit: String(childrenListPagination.size), - offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), - where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, - } as any, - ) + if (isPublic) { + childrenList.value = await $api.public.dataNestedList( + sharedView.value?.uuid as string, + rowId.value, + colOptions.type as 'mm' | 'hm', + encodeURIComponent(column?.value?.id), + { + limit: String(childrenListPagination.size), + offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), + where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, + } as any, + ) + }else{ + childrenList.value = await $api.dbTableRow.nestedList( + NOCO, + (project?.value?.id || sharedView?.value?.view?.project_id) as string, + meta.value.id, + rowId.value, + colOptions.type as 'mm' | 'hm', + encodeURIComponent(column?.value?.title), + { + limit: String(childrenListPagination.size), + offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), + where: childrenListPagination.query && `(${relatedTablePrimaryValueProp.value},like,${childrenListPagination.query})`, + } as any, + ) + } } catch (e: any) { message.error(`Failed to load children list: ${await extractSdkResponseErrorMsg(e)}`) }