Skip to content

Commit 57e8f94

Browse files
authored
Merge pull request #1358 from fpaz/master
fix: gridjs duplicate plugin error when updating config
2 parents dd8985e + 01461ab commit 57e8f94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ export class Config {
167167
translator: new Translator(config.language),
168168
});
169169

170+
// clear existing plugins list to prevent duplicate errors
171+
config.plugin = new PluginManager();
172+
170173
if (config.search) {
171174
// Search
172175
config.plugin.add({

0 commit comments

Comments
 (0)