diff --git a/src/pages/panel/components/InspectedElement.tsx b/src/pages/panel/components/InspectedElement.tsx index 53306e4..983ed85 100644 --- a/src/pages/panel/components/InspectedElement.tsx +++ b/src/pages/panel/components/InspectedElement.tsx @@ -109,7 +109,7 @@ export default function InspectedElement({ selectedNode }: IProps) { updateAttr( item.name, isNaN(e.target.valueAsNumber) - ? "" + ? null // JSON.stringify will not preserve undefined, so we have to use null here : e.target.valueAsNumber ) }