Fixing reactivity issues in hotkeys manager

This commit is contained in:
Bruno Alves de Faria 2018-02-02 13:46:42 -02:00
parent 78c282558c
commit 1fbf2fdf11

View File

@ -17,7 +17,9 @@ export class HotkeysManager {
Tracker.autorun(() => {
const contextName = OHIF.context.get();
this.switchToContext(contextName);
// Avoind falling in MongoDB collections reactivity
Tracker.nonreactive(() => this.switchToContext(contextName));
});
}