mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Chat Trigger Node): Don't continue when action is load previous session and option is not set (#15438)
This commit is contained in:
@@ -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: [] },
|
||||
|
||||
Reference in New Issue
Block a user