fix(devtools): Display falsy signal values correctly (#62919)

falsy value would display their preview because of the logical or.

fixes #55727

PR Close #62919
This commit is contained in:
Matthieu Riegler 2025-07-31 11:18:54 +02:00 committed by Kristiyan Kostadinov
parent b0f0b6d836
commit 65f587bc5d

View file

@ -8,7 +8,7 @@
} @else {
<ng-property-editor
[key]="node.prop.name"
[initialValue]="node.prop.descriptor.value || node.prop.descriptor.preview"
[initialValue]="node.prop.descriptor.value ?? node.prop.descriptor.preview"
[containerType]="node.prop.descriptor.containerType"
(updateValue)="handleUpdate(node, $event)"
/>