diff --git a/src/webpack/common/stores.ts b/src/webpack/common/stores.ts index f0cce76ce..9c8d4cadb 100644 --- a/src/webpack/common/stores.ts +++ b/src/webpack/common/stores.ts @@ -24,7 +24,7 @@ export const Flux = findByProps("connectStores"); export type GenericStore = t.FluxStore & Record; -export const { DraftType }: { DraftType: typeof t.DraftType; } = findByPropsLazy("DraftType"); +export const DraftType = find(filters.byProps("DraftType"), m => m.DraftType); // This is not actually a FluxStore export const PrivateChannelsStore = findByProps("openPrivateChannel");