We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 984ef96 commit afadcf5Copy full SHA for afadcf5
1 file changed
apps/sim/serializer/index.ts
@@ -444,7 +444,7 @@ export class Serializer {
444
const paramsMapper = blockConfig.tools?.config?.params
445
if (typeof paramsMapper === 'function') {
446
const result = paramsMapper({ ...params })
447
- if (result && typeof result === 'object') {
+ if (result && typeof result === 'object' && !Array.isArray(result)) {
448
mappedParams = { ...params, ...result }
449
}
450
@@ -485,7 +485,7 @@ export class Serializer {
485
return
486
487
488
- const fieldValue = mappedParams[paramId] ?? params[paramId]
+ const fieldValue = mappedParams[paramId]
489
if (fieldValue === undefined || fieldValue === null || fieldValue === '') {
490
const activeConfig = matchingConfigs.find((config: any) =>
491
shouldSerializeSubBlock(
0 commit comments