From 50814f7291f1f6b812747343d1b2b5b9d25a98d0 Mon Sep 17 00:00:00 2001 From: Joshua Kitenge Date: Wed, 18 Oct 2023 08:15:37 +0000 Subject: [PATCH] remove path and parent path from catalogue --- src/catalogue/catalogue.component.tsx | 3 ++- src/catalogue/category/catalogueCard.component.test.tsx | 2 -- .../category/catalogueCategoryDialog.component.test.tsx | 4 ---- .../category/deleteCatalogueCategoryDialog.component.test.tsx | 2 -- src/catalogue/items/catalogueItemsTable.component.test.tsx | 2 -- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/catalogue/catalogue.component.tsx b/src/catalogue/catalogue.component.tsx index 94cb916a4..9d23d6bef 100644 --- a/src/catalogue/catalogue.component.tsx +++ b/src/catalogue/catalogue.component.tsx @@ -93,7 +93,8 @@ function Catalogue() { data: catalogueCategoryData, isLoading: catalogueCategoryDataLoading, } = useCatalogueCategory( - !catalogueId ? 'null' : catalogueId.replace('/', '') + !catalogueId ? 'null' : catalogueId.replace('/', ''), + undefined ); const { data: catalogueCategoryDetail, diff --git a/src/catalogue/category/catalogueCard.component.test.tsx b/src/catalogue/category/catalogueCard.component.test.tsx index ae8868350..670565b20 100644 --- a/src/catalogue/category/catalogueCard.component.test.tsx +++ b/src/catalogue/category/catalogueCard.component.test.tsx @@ -21,8 +21,6 @@ describe('Catalogue Card', () => { parent_id: '', code: 'beam-characterization', is_leaf: false, - parent_path: '/', - path: '/beam-characterization', onChangeOpenDeleteDialog: onChangeOpenDeleteDialog, onChangeOpenEditDialog: onChangeOpenEditDialog, }; diff --git a/src/catalogue/category/catalogueCategoryDialog.component.test.tsx b/src/catalogue/category/catalogueCategoryDialog.component.test.tsx index a04ba6c5e..26b71f074 100644 --- a/src/catalogue/category/catalogueCategoryDialog.component.test.tsx +++ b/src/catalogue/category/catalogueCategoryDialog.component.test.tsx @@ -247,8 +247,6 @@ describe('Catalogue Category Dialog', () => { parent_id: null, id: '1', code: 'test', - path: '/test', - parent_path: '/', is_leaf: false, }; @@ -354,8 +352,6 @@ describe('Catalogue Category Dialog', () => { parent_id: '1', code: 'voltage-meters', is_leaf: true, - parent_path: '/beam-characterization', - path: '/beam-characterization/voltage-meters', catalogue_item_properties: [ { name: 'Measurement Range', diff --git a/src/catalogue/category/deleteCatalogueCategoryDialog.component.test.tsx b/src/catalogue/category/deleteCatalogueCategoryDialog.component.test.tsx index 9e520e41b..eb18b7276 100644 --- a/src/catalogue/category/deleteCatalogueCategoryDialog.component.test.tsx +++ b/src/catalogue/category/deleteCatalogueCategoryDialog.component.test.tsx @@ -25,8 +25,6 @@ describe('delete Catalogue Category dialogue', () => { parent_id: null, id: '1', code: 'test', - path: '/test', - parent_path: '/', is_leaf: false, }; props = { diff --git a/src/catalogue/items/catalogueItemsTable.component.test.tsx b/src/catalogue/items/catalogueItemsTable.component.test.tsx index 01d1c5cfc..914b68f6c 100644 --- a/src/catalogue/items/catalogueItemsTable.component.test.tsx +++ b/src/catalogue/items/catalogueItemsTable.component.test.tsx @@ -35,8 +35,6 @@ describe('Catalogue Items Table', () => { parent_id: '1', code: 'energy-meters', is_leaf: true, - parent_path: '/beam-characterization', - path: '/beam-characterization/energy-meters', catalogue_item_properties: [ { name: 'Measurement Range',