mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Slack Node): Do not try to parse block if it's already object (#9643)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -8,7 +8,7 @@ import type {
|
||||
IWebhookFunctions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { NodeOperationError, jsonParse } from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import get from 'lodash/get';
|
||||
|
||||
@@ -162,7 +162,7 @@ export function getMessageContent(
|
||||
};
|
||||
break;
|
||||
case 'block':
|
||||
content = jsonParse(this.getNodeParameter('blocksUi', i) as string);
|
||||
content = this.getNodeParameter('blocksUi', i, {}, { ensureType: 'object' }) as IDataObject;
|
||||
|
||||
if (includeLinkToWorkflow && Array.isArray(content.blocks)) {
|
||||
content.blocks.push({
|
||||
|
||||
Reference in New Issue
Block a user