Skip to content

Commit

Permalink
Fix that another (default) added when opening sort menu many times
Browse files Browse the repository at this point in the history
Signed-off-by: Buckminsterfullerene02 <[email protected]>
  • Loading branch information
Buckminsterfullerene02 committed Dec 22, 2024
1 parent fa91adb commit aea83b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/zowe-explorer/src/trees/dataset/DatasetUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class DatasetUtils {
public static readonly DATASET_FILTER_OPTS = [this.DATASET_SORT_OPTS[2], this.DATASET_SORT_OPTS[3]];

public static updateSortOptionsWithDefault(sortMethod: Sorting.DatasetSortOpts): void {
this.DATASET_SORT_OPTS = this.DATASET_SORT_OPTS.map((opt) => opt.replace(` ${vscode.l10n.t("(default)")}`, ""));
this.DATASET_SORT_OPTS = this.DATASET_SORT_OPTS.map((opt, index) => {
if (index === sortMethod) {
return `${opt} ${vscode.l10n.t("(default)")}`;
Expand Down

0 comments on commit aea83b5

Please sign in to comment.