From 2eb354fb4a3ee076dd2cc61881d253ec879e4258 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 12 Apr 2022 13:32:49 +0530 Subject: [PATCH] refactor: shared view nested list api corrections Signed-off-by: Pranav C --- .../components/virtualCell/components/listChildItems.vue | 3 ++- .../src/lib/noco/meta/api/publicApis/publicDataApis.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue b/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue index 896aafc495..3a9d8fb7b9 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue @@ -184,7 +184,8 @@ export default { this.$route.params.id, this.rowId, this.column.colOptions.type, - this.column.fk_column_id || this.column.id, { + this.column.fk_column_id || this.column.id, + { limit: this.size, offset: this.size * (this.page - 1) }, {})) diff --git a/packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts b/packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts index 17de3870c9..9b88d1dde0 100644 --- a/packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts +++ b/packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts @@ -320,7 +320,7 @@ router.get( catchError(dataList) ); router.post( - '/api/v1/db/public/shared-view/:sharedViewUuid/nested/:columnId', + '/api/v1/db/public/shared-view/:sharedViewUuid/rows/nested/:columnId', catchError(relDataList) ); router.post( @@ -332,11 +332,11 @@ router.post( ); router.get( - '/api/v1/db/public/shared-view/:sharedViewUuid/:rowId/mm/:colId', + '/api/v1/db/public/shared-view/:sharedViewUuid/rows/:rowId/mm/:colId', catchError(publicMmList) ); router.get( - '/api/v1/db/public/shared-view/:sharedViewUuid/:rowId/hm/:colId', + '/api/v1/db/public/shared-view/:sharedViewUuid/rows/:rowId/hm/:colId', catchError(publicHmList) );