Browse Source

refactor: shared view nested list api corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 3 years ago
parent
commit
2eb354fb4a
  1. 3
      packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue
  2. 6
      packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts

3
packages/nc-gui/components/project/spreadsheet/components/virtualCell/components/listChildItems.vue

@ -184,7 +184,8 @@ export default {
this.$route.params.id, this.$route.params.id,
this.rowId, this.rowId,
this.column.colOptions.type, this.column.colOptions.type,
this.column.fk_column_id || this.column.id, { this.column.fk_column_id || this.column.id,
{
limit: this.size, limit: this.size,
offset: this.size * (this.page - 1) offset: this.size * (this.page - 1)
}, {})) }, {}))

6
packages/nocodb/src/lib/noco/meta/api/publicApis/publicDataApis.ts

@ -320,7 +320,7 @@ router.get(
catchError(dataList) catchError(dataList)
); );
router.post( router.post(
'/api/v1/db/public/shared-view/:sharedViewUuid/nested/:columnId', '/api/v1/db/public/shared-view/:sharedViewUuid/rows/nested/:columnId',
catchError(relDataList) catchError(relDataList)
); );
router.post( router.post(
@ -332,11 +332,11 @@ router.post(
); );
router.get( 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) catchError(publicMmList)
); );
router.get( 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) catchError(publicHmList)
); );

Loading…
Cancel
Save