Skip to content

Commit

Permalink
πŸ› fix: css클래슀 μ‚­μ œ ν›„ λ˜‘κ°™μ€ μ΄λ¦„μœΌλ‘œ 생성 ν›„ css λΆ€μ—¬ μ‹œ μ—λŸ¬ λ°œμƒν•˜λŠ” 버그 μˆ˜μ • (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
lee0jae330 authored Dec 4, 2024
1 parent aae7749 commit 76b2478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/client/src/core/styleFlyout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ export default class StyleFlyout extends FixedFlyout {

// μƒˆλ‘­κ²Œ μƒμ„±λ˜λŠ” CSS 클래슀 블둝 정보
if (!Blockly.Blocks[createClassType!]) {
useCssPropsStore.getState().addNewCssClass(createClassType);
useWorkspaceChangeStatusStore.getState().setIsBlockChanged(true);
Blockly.Blocks[createClassType!] = {
init: function () {
this.appendDummyInput().appendField(
Expand All @@ -254,6 +252,8 @@ export default class StyleFlyout extends FixedFlyout {
};
}

useCssPropsStore.getState().addNewCssClass(createClassType);
useWorkspaceChangeStatusStore.getState().setIsBlockChanged(true);
// κΈ°μ‘΄ 블둝듀이 μžˆλŠ” cssStyleToolboxConfig.ts에 μƒˆ 블둝 μΆ”κ°€
cssStyleToolboxConfig!.contents = [
...existingBlocks,
Expand Down

0 comments on commit 76b2478

Please sign in to comment.