Fixes and improvements related to components
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { isDesktopApplication, dictToArray } from '@/utils';
|
||||
import { isDesktopApplication } from '@/utils';
|
||||
import {
|
||||
SNPredicate,
|
||||
ContentType,
|
||||
@@ -7,7 +7,8 @@ import {
|
||||
ComponentAction,
|
||||
FillItemContent,
|
||||
ComponentMutator,
|
||||
Copy
|
||||
Copy,
|
||||
dictToArray
|
||||
} from 'snjs';
|
||||
import { PayloadContent } from '@/../../../../snjs/dist/@types/protocol/payloads/generator';
|
||||
import { ComponentPermission } from '@/../../../../snjs/dist/@types/models/app/component';
|
||||
|
||||
@@ -92,7 +92,7 @@ export class ThemeManager extends ApplicationService {
|
||||
const activeThemes = this.application!.componentManager!.getActiveThemes();
|
||||
for (const theme of activeThemes) {
|
||||
if (theme) {
|
||||
this.application!.componentManager!.deregisterComponent(theme);
|
||||
this.application!.componentManager!.deregisterComponent(theme.uuid);
|
||||
}
|
||||
}
|
||||
this.activeThemes = [];
|
||||
|
||||
Reference in New Issue
Block a user