mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix(tool-input): code subblock should be emptyable (#2646)
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user