fix: cannot publish current editing block#987
Conversation
WalkthroughThe pull request introduces a modification to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/plugins/block/src/js/blockSetting.jsx (1)
423-424: Consider using a consistent deep-merge approach for reactive state.Line 423 uses a shallow merge with
Object.assign, whereas the code in other places sometimes usesextendfor deep merging. If child objects need merging as well, adopting a single approach (e.g.,extend(true, block, newBlock)) may help ensure consistency and prevent partial merges of nested properties.- Object.assign(block, newBlock) + import { extend } from '@opentiny/vue-renderless/common/object' + extend(true, block, newBlock)
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit