fix: Fixes issue where lock screen would not use previously active theme (#2372)
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
isPayloadSourceRetrieved,
|
||||
PrefKey,
|
||||
PrefDefaults,
|
||||
FeatureIdentifier,
|
||||
NativeFeatureIdentifier,
|
||||
FeatureStatus,
|
||||
GetSuperNoteFeature,
|
||||
} from '@standardnotes/snjs'
|
||||
@@ -76,7 +76,12 @@ export const SuperEditor: FunctionComponent<Props> = ({
|
||||
|
||||
useEffect(() => {
|
||||
setFeatureStatus(
|
||||
application.features.getFeatureStatus(FeatureIdentifier.SuperEditor, { inContextOfItem: note.current }),
|
||||
application.features.getFeatureStatus(
|
||||
NativeFeatureIdentifier.create(NativeFeatureIdentifier.TYPES.SuperEditor).getValue(),
|
||||
{
|
||||
inContextOfItem: note.current,
|
||||
},
|
||||
),
|
||||
)
|
||||
}, [application.features])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user