Skip to content

Commit

Permalink
fix: optimize the judgment method of empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
SonyLeo committed Feb 26, 2025
1 parent e71ffc2 commit a3e12dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/canvas/container/src/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const handleClipboardCut = (event, schema) => {
}

const handleClipboardPaste = (nodeList, schema, parent) => {
if (nodeList.length === 0) return
if (!nodeList.length) return

nodeList.forEach((node) => {
if (node?.componentName && schema?.componentName && allowInsert(getConfigure(schema.componentName), node)) {
Expand Down

0 comments on commit a3e12dd

Please sign in to comment.