Skip to content

Commit 26bb305

Browse files
committed
testing to make sure the store doesnt exist yet
1 parent 7c11209 commit 26bb305

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dash/dash-renderer/src/store.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ export default class RendererStore {
5959
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
6060
// @ts-ignore
6161
const ds = (window.dash_stores = window.dash_stores || []);
62-
ds.push(this.__store);
62+
if (!ds.includes(this.__store) {
63+
ds.push(this.__store);
64+
}
6365
this.setObservers();
6466
};
6567

0 commit comments

Comments
 (0)