diff --git a/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Secondary.tsx b/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Secondary.tsx index a16f972405..c576a4848f 100644 --- a/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Secondary.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/components/sidebar/Secondary.tsx @@ -2,7 +2,6 @@ import {__} from '@wordpress/i18n'; import BlockListTree from './panels/BlockListTree'; import {__experimentalLibrary as Library} from '@wordpress/block-editor'; import AdditionalFieldsPanel from '@givewp/form-builder/promos/additionalFields'; -import {useSelect} from '@wordpress/data'; import {getFormBuilderWindowData} from '@givewp/form-builder/common/getWindowData'; const BlockListInserter = () => { diff --git a/src/FormBuilder/resources/js/form-builder/src/containers/BlockEditorInterfaceSkeletonContainer.tsx b/src/FormBuilder/resources/js/form-builder/src/containers/BlockEditorInterfaceSkeletonContainer.tsx index bbaf078708..59c2763c26 100644 --- a/src/FormBuilder/resources/js/form-builder/src/containers/BlockEditorInterfaceSkeletonContainer.tsx +++ b/src/FormBuilder/resources/js/form-builder/src/containers/BlockEditorInterfaceSkeletonContainer.tsx @@ -47,7 +47,7 @@ const DesignEditorSkeleton = () => { const SchemaEditorSkeleton = () => { const {state: showSidebar, toggle: toggleShowSidebar} = useToggleState(true); - const [selectedSecondarySidebar, setSelectedSecondarySidebar] = useState(''); + const [selectedSecondarySidebar, setSelectedSecondarySidebar] = useState('add'); const toggleSelectedSecondarySidebar = (name) => setSelectedSecondarySidebar(name !== selectedSecondarySidebar ? name : false);