Browse Source

fix(nc-gui): use correct return of fetch result

pull/3606/head
braks 2 years ago
parent
commit
47788a6664
  1. 3
      packages/nc-gui/composables/useViewFilters.ts

3
packages/nc-gui/composables/useViewFilters.ts

@ -69,7 +69,8 @@ export function useViewFilters(
if (parentId) {
filters.value = await $api.dbTableFilter.childrenRead(parentId)
} else {
filters.value = (await $api.dbTableWebhookFilter.read(hookId!)).filters.list
// todo: return type is incorrect
filters.value = (await $api.dbTableWebhookFilter.read(hookId!)) as unknown as Filter[]
}
} else {
if (parentId) {

Loading…
Cancel
Save