Browse Source

fix(gui-v2): includeM2M display

pull/3257/head
Wing-Kam Wong 2 years ago
parent
commit
b67f96eeb8
  1. 3
      packages/nc-gui-v2/components/dashboard/settings/UIAcl.vue
  2. 5
      packages/nocodb/src/lib/meta/api/tableApis.ts

3
packages/nc-gui-v2/components/dashboard/settings/UIAcl.vue

@ -32,8 +32,7 @@ async function loadTableList() {
isLoading = true
tables = await $api.project.modelVisibilityList(project.value?.id, {
// FIXME: type
includeM2M: includeM2M.value || '',
includeM2M: includeM2M.value,
})
} catch (e) {
console.error(e)

5
packages/nocodb/src/lib/meta/api/tableApis.ts

@ -77,10 +77,9 @@ export async function tableList(req: Request, res: Response<TableListType>) {
})
).filter((t) => tableViewMapping[t.id]);
res // todo: pagination
.json(
res.json(
new PagedResponseImpl(
req.query?.includeM2M
req.query?.includeM2M === 'true'
? tableList
: (tableList.filter((t) => !t.mm) as Model[])
)

Loading…
Cancel
Save