Skip to content

Commit

Permalink
fix: gridjs duplicate plugin error when updating config
Browse files Browse the repository at this point in the history
  • Loading branch information
fpaz committed Jun 7, 2023
1 parent 6275e01 commit 01461ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export class Config {
translator: new Translator(config.language),
});

// clear existing plugins list to prevent duplicate errors
config.plugin = new PluginManager();

if (config.search) {
// Search
config.plugin.add({
Expand Down

0 comments on commit 01461ab

Please sign in to comment.