Skip to content

Commit 9f3e92d

Browse files
committed
properly remove shortcuts.vdf entries
1 parent f72c3a1 commit 9f3e92d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/vdf-shortcuts-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class VDF_ShortcutsFile {
7878

7979
write() {
8080
return Promise.resolve().then(() => {
81-
this.fileData['shortcuts'] = _.pickBy(this.fileData['shortcuts'], item => item !== undefined);
81+
this.fileData['shortcuts'] = (this.fileData['shortcuts'] as VDF_ShortcutsItem[]).filter(item => item !== undefined);
8282
let data = shortcutsParser.writeBuffer(this.fileData);
8383
return fs.outputFile(this.filepath, data);
8484
}).catch((error) => {

0 commit comments

Comments
 (0)