Browse Source

fix: error api call

pull/6360/head
DarkPhoenix2704 1 year ago
parent
commit
e1011651a4
  1. 4
      packages/nc-gui/composables/useLTARStore.ts

4
packages/nc-gui/composables/useLTARStore.ts

@ -211,13 +211,13 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
const loadChildrenList = async () => { const loadChildrenList = async () => {
try { try {
if (colOptions.value.type === 'bt') return if (colOptions.value.type === 'bt') return
if (!rowId.value || !column.value) return
if (isPublic.value) { if (isPublic.value) {
childrenList.value = await $api.public.dataNestedList( childrenList.value = await $api.public.dataNestedList(
sharedView.value?.uuid as string, sharedView.value?.uuid as string,
encodeURIComponent(rowId.value), encodeURIComponent(rowId.value),
colOptions.value.type as 'mm' | 'hm', colOptions.value.type as 'mm' | 'hm',
column?.value?.id, column.value.id,
{ {
limit: String(childrenListPagination.size), limit: String(childrenListPagination.size),
offset: String(childrenListPagination.size * (childrenListPagination.page - 1)), offset: String(childrenListPagination.size * (childrenListPagination.page - 1)),

Loading…
Cancel
Save