Skip to content

Commit

Permalink
fix: order of labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Sep 30, 2024
1 parent 68c3e0b commit c3afb4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/PolicyUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,9 @@ function getNetSuiteImportCustomFieldLabel(
}

const mappingSet = new Set(fieldData.map((item) => item.mapping));
const importedTypes = Array.from(mappingSet).map((mapping) => translate(`workspace.netsuite.import.importTypes.${mapping}.label`).toLowerCase());
const importedTypes = Array.from(mappingSet)
.sort((a, b) => b.localeCompare(a))
.map((mapping) => translate(`workspace.netsuite.import.importTypes.${mapping}.label`).toLowerCase());
return translate(`workspace.netsuite.import.importCustomFields.label`, importedTypes);
}

Expand Down

0 comments on commit c3afb4c

Please sign in to comment.