Skip to content

Commit

Permalink
remove path and parent path from catalogue
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadkitenge committed Oct 18, 2023
1 parent 86b1d72 commit 50814f7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/catalogue/catalogue.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ function Catalogue() {
data: catalogueCategoryData,
isLoading: catalogueCategoryDataLoading,
} = useCatalogueCategory(
!catalogueId ? 'null' : catalogueId.replace('/', '')
!catalogueId ? 'null' : catalogueId.replace('/', ''),
undefined
);
const {
data: catalogueCategoryDetail,
Expand Down
2 changes: 0 additions & 2 deletions src/catalogue/category/catalogueCard.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ describe('Catalogue Card', () => {
parent_id: '',
code: 'beam-characterization',
is_leaf: false,
parent_path: '/',
path: '/beam-characterization',
onChangeOpenDeleteDialog: onChangeOpenDeleteDialog,
onChangeOpenEditDialog: onChangeOpenEditDialog,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ describe('Catalogue Category Dialog', () => {
parent_id: null,
id: '1',
code: 'test',
path: '/test',
parent_path: '/',
is_leaf: false,
};

Expand Down Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ describe('delete Catalogue Category dialogue', () => {
parent_id: null,
id: '1',
code: 'test',
path: '/test',
parent_path: '/',
is_leaf: false,
};
props = {
Expand Down
2 changes: 0 additions & 2 deletions src/catalogue/items/catalogueItemsTable.component.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 50814f7

Please sign in to comment.