fix: plain editor font changing (#880)

This commit is contained in:
Aman Harwara
2022-02-18 19:31:50 +05:30
committed by GitHub
parent 1887d5d01e
commit cd814bf473

View File

@@ -163,6 +163,12 @@ export const ChangeEditorMenu: FunctionComponent<ChangeEditorMenuProps> = ({
};
const selectEditor = async (itemToBeSelected: EditorMenuItem) => {
const areBothEditorsPlain = !currentEditor && !itemToBeSelected.component;
if (areBothEditorsPlain) {
return;
}
let shouldSelectEditor = true;
if (itemToBeSelected.component) {