Skip to content

Commit

Permalink
fix: add set to unique
Browse files Browse the repository at this point in the history
Signed-off-by: tygao <[email protected]>
  • Loading branch information
raintygao committed Aug 25, 2023
1 parent c0cc77e commit 1a9b75f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const isDefaultCheckedFeatureId = (id: string) => {

const appendDefaultFeatureIds = (ids: string[]) => {
// concat default checked ids and unique the result
return Array.from(ids.concat(DEFAULT_CHECKED_FEATURES_IDS));
return Array.from(new Set(ids.concat(DEFAULT_CHECKED_FEATURES_IDS)));
};

const workspaceHtmlIdGenerator = htmlIdGenerator();
Expand Down

0 comments on commit 1a9b75f

Please sign in to comment.