From fa31f96a63f45e1243dbfeca61126bbbfd7f2bb0 Mon Sep 17 00:00:00 2001 From: Viswas Haridas <37623357+JustARatherRidiculouslyLongUsername@users.noreply.github.com> Date: Fri, 21 Jun 2024 19:34:06 +0530 Subject: [PATCH] remove the "Project" tab from the sage 300 mapping page (#852) * remove the "Project" tab from the sage 300 mapping page - remove the underlying api call to `/sage-desktop-api/api/workspaces/:id/mappings/settings/` * fix: all fields except employee and category not showing up * refactor: remove logging --- .../sage300-main/sage300-mapping/sage300-mapping.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/integrations/sage300/sage300-main/sage300-mapping/sage300-mapping.component.ts b/src/app/integrations/sage300/sage300-main/sage300-mapping/sage300-mapping.component.ts index 2fca4af0f..58889d3bf 100644 --- a/src/app/integrations/sage300/sage300-main/sage300-mapping/sage300-mapping.component.ts +++ b/src/app/integrations/sage300/sage300-main/sage300-mapping/sage300-mapping.component.ts @@ -38,7 +38,7 @@ export class Sage300MappingComponent implements OnInit { this.mappingService.getMappingSettings().subscribe((response) => { if (response.results && Array.isArray(response.results)) { response.results.forEach((item) => { - if (item.source_field!==FyleField.EMPLOYEE && item.source_field!=='CATEGORY') { + if (item.source_field!==FyleField.EMPLOYEE && item.source_field!=='CATEGORY' && item.source_field !== 'PROJECT') { this.mappingPages.push({ label: new TitleCasePipe().transform(new SnakeCaseToSpaceCasePipe().transform(item.source_field)), routerLink: `/integrations/sage300/main/mapping/${encodeURIComponent(item.source_field.toLowerCase())}`