fix(Chat Trigger Node): Don't continue when action is load previous session and option is not set (#15438)

This commit is contained in:
jeanpaul
2025-05-19 16:21:23 +02:00
committed by GitHub
parent 0e708ddb54
commit 8fd0738191
2 changed files with 134 additions and 1 deletions

View File

@@ -563,7 +563,7 @@ ${cssVariables}
return {
webhookResponse: { data: messages },
};
} else if (options?.loadPreviousSession === 'notSupported') {
} else if (!options?.loadPreviousSession || options?.loadPreviousSession === 'notSupported') {
// If messages of a previous session should not be loaded, simply return an empty array
return {
webhookResponse: { data: [] },