fix: Add `lang` attribute to current composer language in alt text modal (#35412)

pull/35422/head
diondiondion 4 months ago committed by GitHub
parent 9e6a9efe10
commit 138746bdcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -261,7 +261,9 @@ export const AltTextModal = forwardRef<ModalRef, Props & Partial<RestoreProps>>(
);
const lang = useAppSelector(
(state) =>
(state.compose as ImmutableMap<string, unknown>).get('lang') as string,
(state.compose as ImmutableMap<string, unknown>).get(
'language',
) as string,
);
const focusX =
(media?.getIn(['meta', 'focus', 'x'], 0) as number | undefined) ?? 0;

Loading…
Cancel
Save