Skip to content

Commit

Permalink
remove the "Project" tab from the sage 300 mapping page (#852)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JustARatherRidiculouslyLongUsername committed Jun 24, 2024
1 parent e561560 commit fa31f96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())}`
Expand Down

0 comments on commit fa31f96

Please sign in to comment.