Skip to content

Commit

Permalink
properly remove shortcuts.vdf entries
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Nov 21, 2017
1 parent f72c3a1 commit 9f3e92d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/vdf-shortcuts-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class VDF_ShortcutsFile {

write() {
return Promise.resolve().then(() => {
this.fileData['shortcuts'] = _.pickBy(this.fileData['shortcuts'], item => item !== undefined);
this.fileData['shortcuts'] = (this.fileData['shortcuts'] as VDF_ShortcutsItem[]).filter(item => item !== undefined);
let data = shortcutsParser.writeBuffer(this.fileData);
return fs.outputFile(this.filepath, data);
}).catch((error) => {
Expand Down

0 comments on commit 9f3e92d

Please sign in to comment.