Skip to content

Commit

Permalink
Merge pull request #1344 from jovotech/v4/fix/google-state-merge
Browse files Browse the repository at this point in the history
馃悰 Fix state stack merge on Google Assistant #1211
  • Loading branch information
aswetlow committed Jun 8, 2022
2 parents a976cb9 + 7b70611 commit e7d05cc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export class GoogleAssistantPlatform extends Platform<
if (typeof objValue === 'string' && typeof srcValue === 'string') {
return objValue ? objValue : srcValue;
}
// Replaces full array with the value furthest to the right. No concatenation of array values.
if (Array.isArray(objValue) && Array.isArray(srcValue)) {
return srcValue;
}
},
);

Expand Down

0 comments on commit e7d05cc

Please sign in to comment.