Skip to content

Commit

Permalink
Fix: editSliderLaunch()
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdkei authored and mtdkei committed Feb 21, 2025
1 parent 437bde8 commit 8810ef5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/blocks/slider/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ export default function SliderEdit(props) {
blockId,
} = attributes;

editSliderLaunch();
useEffect(() => {
editSliderLaunch();
}, [attributes]);
if (editorMode) {
editSliderLaunch();
}
}, [editorMode]);

useEffect(() => {
// attributes の clientId は使わなくなったので削除
Expand Down

0 comments on commit 8810ef5

Please sign in to comment.