mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-06 21:54:01 -05:00
fix(tool-input): code subblock should be emptyable (#2646)
This commit is contained in:
committed by
GitHub
parent
c77268c13d
commit
2cfd75a422
@@ -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