Skip to content

Commit

Permalink
fix(tree) Fix error message for move from hydrated to unhydrated pare…
Browse files Browse the repository at this point in the history
…nt (#23591)

## Description

Fix error message for move from hydrated to unhydrated parent

## Breaking Changes

None
  • Loading branch information
yann-achard-MS authored Jan 16, 2025
1 parent 6b35040 commit 99e398f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dds/tree/src/simple-tree/arrayNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ abstract class CustomArrayNodeBase<const T extends ImplicitAllowedTypes>
if (!destinationField.context.isHydrated()) {
if (!(sourceField instanceof UnhydratedTreeSequenceField)) {
throw new UsageError(
"Cannot move elements from an unhydrated array to a hydrated array.",
"Cannot move elements from a hydrated array to an unhydrated array.",
);
}

Expand Down

0 comments on commit 99e398f

Please sign in to comment.