Skip to content

Commit 54c3042

Browse files
Merge pull request #2575 from OlegApanovich/VC-3541-update-to-vc-wcb-compatibility
VC-3541 update to vc wcb compatibility
2 parents afa3ab9 + ff2e71e commit 54c3042

File tree

2 files changed

+2
-64
lines changed

2 files changed

+2
-64
lines changed

public/components/backendSwitcher/lib/frontendClassicSwitcher.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export default class FrontendClassicSwitcher extends React.Component {
1616
beEditorInput.value = 'classic'
1717
}
1818
let editor = beEditorInput.value
19-
if ((beEditorInput && ['classic', 'gutenberg'].indexOf(editor) === -1) || (editor === 'gutenberg' && !gutenberg)) {
19+
20+
if (editor === 'gutenberg' && !gutenberg) {
2021
editor = 'be'
2122
this.hideClassicEditor()
2223
}

visualcomposer/Modules/Editors/Backend/EditorController.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)