fix: deactivate themes on signout

This commit is contained in:
Mo Bitar
2020-04-21 17:24:11 -05:00
parent 6be8fa93f8
commit 2ce981a1ea
5 changed files with 232 additions and 17297 deletions

View File

@@ -1030,12 +1030,12 @@ class EditorViewCtrl extends PureViewCtrl implements EditorViewScope {
ComponentArea.EditorStack,
ComponentArea.Editor
],
contextRequestHandler: (component) => {
contextRequestHandler: (componentUuid) => {
const currentEditor = this.activeEditorComponent;
if (
component.uuid === currentEditor?.uuid ||
component.uuid === this.activeTagsComponent?.uuid ||
Uuids(this.getState().activeStackComponents).includes(component.uuid)
componentUuid === currentEditor?.uuid ||
componentUuid === this.activeTagsComponent?.uuid ||
Uuids(this.getState().activeStackComponents).includes(componentUuid)
) {
return this.note;
}