Skip to content

Commit

Permalink
Use {} instead of Object.create(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
Image-unavailable committed Oct 2, 2022
1 parent a921e76 commit cf5b774
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class LangLabelWidgetComponent extends AbstractWidget {
}

get defaultValue() {
const value = Object.create(null);
const value: any = {};
for (const language of this.languages) {
value[language] = '';
}
Expand Down

0 comments on commit cf5b774

Please sign in to comment.