Keep previous passByReference value when updating custom scripts
@@ -2207,7 +2207,7 @@ const refreshCustomEventArgs: CaseReducer<
variables[variable] = {
id: variable,
name: oldVariables[variable]?.name || `Variable ${letter}`,
- passByReference: oldVariables[variable]?.passByReference || true,
+ passByReference: oldVariables[variable]?.passByReference ?? true,
};
};
const variable = args[arg];
@@ -2265,7 +2265,7 @@ const refreshCustomEventArgs: CaseReducer<
id: variableId,
name: oldVariables[variableId]?.name || `Variable ${letter}`,
passByReference:
- oldVariables[variable]?.passByReference || true,
+ oldVariables[variable]?.passByReference ?? true,
};
});
}
