Skip to content

Commit fa31f96

Browse files
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
1 parent e561560 commit fa31f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/integrations/sage300/sage300-main/sage300-mapping/sage300-mapping.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class Sage300MappingComponent implements OnInit {
3838
this.mappingService.getMappingSettings().subscribe((response) => {
3939
if (response.results && Array.isArray(response.results)) {
4040
response.results.forEach((item) => {
41-
if (item.source_field!==FyleField.EMPLOYEE && item.source_field!=='CATEGORY') {
41+
if (item.source_field!==FyleField.EMPLOYEE && item.source_field!=='CATEGORY' && item.source_field !== 'PROJECT') {
4242
this.mappingPages.push({
4343
label: new TitleCasePipe().transform(new SnakeCaseToSpaceCasePipe().transform(item.source_field)),
4444
routerLink: `/integrations/sage300/main/mapping/${encodeURIComponent(item.source_field.toLowerCase())}`

0 commit comments

Comments
 (0)