fix: Fixed issue on Android where deprecated editors wouldn't load

This commit is contained in:
Aman Harwara
2023-11-30 14:31:26 +05:30
parent 5f6b574846
commit b89d9af7db
2 changed files with 24 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import { IframeEditors } from '../Lists/IframeEditors'
import { themes } from '../Lists/Themes'
import { nativeEditors } from '../Lists/NativeEditors'
import { IframeComponentFeatureDescription } from './IframeComponentFeatureDescription'
import { ComponentArea } from '../Component/ComponentArea'
export function GetFeatures(): AnyFeatureDescription[] {
return [
@@ -54,3 +55,7 @@ export function GetNativeThemes(): ThemeFeatureDescription[] {
export function GetDarkThemeFeature(): ThemeFeatureDescription {
return themes().find((t) => t.identifier === NativeFeatureIdentifier.TYPES.DarkTheme) as ThemeFeatureDescription
}
export function GetDeprecatedEditors(): IframeComponentFeatureDescription[] {
return (GetDeprecatedFeatures() as IframeComponentFeatureDescription[]).filter((f) => f.area === ComponentArea.Editor)
}