Browse Source

fix: childrenList count

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

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

@ -230,7 +230,9 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
isChildrenListLinked.value[index] = true
isChildrenListLoading.value[index] = false
})
childrenListCount.value = childrenList.value?.pageInfo.totalRows ?? 0
if (!childrenListPagination.query) {
childrenListCount.value = childrenList.value?.pageInfo.totalRows ?? 0
}
} catch (e: any) {
message.error(`${t('msg.error.failedToLoadChildrenList')}: ${await extractSdkResponseErrorMsg(e)}`)
}

Loading…
Cancel
Save