Skip to content

Commit

Permalink
Merge pull request #1358 from fpaz/master
Browse files Browse the repository at this point in the history
fix: gridjs duplicate plugin error when updating config
  • Loading branch information
afshinm committed Mar 3, 2024
2 parents dd8985e + 01461ab commit 57e8f94
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 @@ -167,6 +167,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 57e8f94

Please sign in to comment.