fix(tool-input): code subblock should be emptyable (#2646)

This commit is contained in:
Vikhyath Mondreti
2025-12-30 17:45:56 -08:00
committed by GitHub
parent c77268c13d
commit 2cfd75a422

View File

@@ -210,7 +210,7 @@ function GenericSyncWrapper<T = unknown>({
const [storeValue] = useSubBlockValue(blockId, paramId)
useEffect(() => {
if (storeValue) {
if (storeValue != null) {
const transformedValue = transformer ? transformer(storeValue) : String(storeValue)
if (transformedValue !== value) {
onChange(transformedValue)