Skip to content

Commit

Permalink
Fix slot saving
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Dec 30, 2022
1 parent 6182dad commit 6dada6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SearchBlock/BlockContainer/SlotEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import cx from 'classnames';

export default function SlotEditor(props) {
const {
name,
slot,
data,
selectedSlotFill,
onChangeSlotfill,
Expand All @@ -30,7 +30,7 @@ export default function SlotEditor(props) {
className="aboveSearchblockOverlay"
activeIndex={activeIndex}
panes={SEARCH_STATES.map(([state, label]) => {
const blockId = `${name}-${state}`;
const blockId = `${slot}-${state}`;
const hasData = !!data?.[blockId];
return {
menuItem: (el, { active, index }) => {
Expand Down

0 comments on commit 6dada6b

Please sign in to comment.