Skip to content

Commit

Permalink
fix: test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanad94 committed Mar 13, 2024
1 parent f6eed0e commit 737cfa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function CopyMoveTreePicker<T extends GenericContentWithIsParent = Generi
if (!node.isParent) {
const newSelection = []

if (newSelection.length === selection.length || selection[0].Id !== node.Id) {
if (newSelection.length === selection.length || selection[0]?.Id !== node.Id) {
newSelection.push(node)
props.setDestination?.(node.DisplayName)
}
Expand Down

0 comments on commit 737cfa7

Please sign in to comment.