Skip to content

Commit 0f39297

Browse files
committed
add fix for incorrect mappings for fat trigger
1 parent aac2962 commit 0f39297

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/react/src/utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,10 @@ export const disambiguateActionVariables = (
327327

328328
if (action.acceptsModelInput || action.hasCreateOrUpdateEffect) {
329329
if (
330-
action.modelApiIdentifier in variables &&
331-
typeof variables[action.modelApiIdentifier] === "object" &&
332-
variables[action.modelApiIdentifier] !== null
330+
(action.modelApiIdentifier in variables &&
331+
typeof variables[action.modelApiIdentifier] === "object" &&
332+
variables[action.modelApiIdentifier] !== null) ||
333+
!action.variables[action.modelApiIdentifier]
333334
) {
334335
newVariables = variables;
335336
} else {

0 commit comments

Comments
 (0)