-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Slack Node): Do not try to parse block if it's already object #9643
fix(Slack Node): Do not try to parse block if it's already object #9643
Conversation
…slack-node-blocks-explicitly-expects-json-string
…slack-node-blocks-explicitly-expects-json-string
…slack-node-blocks-explicitly-expects-json-string
…-blocks-explicitly-expects-json-string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix. 🙏🏽
@@ -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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't ideal, but considering the state of type-safety in this package, I think this might be the most realistic option right now .
✅ No visual regressions found. |
|
3 flaky tests on run #5554 ↗︎
Details:
5-ndv.cy.ts • 1 flaky test
10-undo-redo.cy.ts • 1 flaky test
20-workflow-executions.cy.ts • 1 flaky test
Review all test suite changes for PR #9643 ↗︎ |
✅ All Cypress E2E specs passed |
…n-io#9643) Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
…n-io#9643) Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
Got released with |
1 similar comment
Got released with |
Summary
Slack Node Blocks explicitly expects JSON String
Related tickets and issues
https://linear.app/n8n/issue/NODE-647/slack-node-blocks-explicitly-expects-json-string