Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 11, 2023
1 parent a528613 commit ee8ae2c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/modules/config-editor/config-editor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,11 @@ export class ConfigEditorService {

const idx = config.disabledPlugins.findIndex(x => x === pluginName);

config.disabledPlugins.splice(idx, 1);

await this.updateConfigFile(config);
// Check plugin is in thw list
if (idx > -1) {
config.disabledPlugins.splice(idx, 1);
await this.updateConfigFile(config);
}

return config.disabledPlugins;
}
Expand Down

0 comments on commit ee8ae2c

Please sign in to comment.