Skip to content

Conversation

@hentrymartin
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-3090

What's in this PR?

  • Seems like the swr url got changed slighly and it broke the mutation
  • Now updated the mutation url keys to reflect the change
  • This would make the likes/dislikes/comments to be updated automatically.


try {
const itemsKey = `${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun.id}/items`
const itemsKey = `${EnvironmentConfig.API.V6}/workflows/${workflowId}/runs/${workflowRun.id}/items?[${workflowRun?.status}]`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The use of optional chaining with workflowRun?.status in the URL may lead to unexpected behavior if workflowRun is undefined. Consider ensuring workflowRun is defined before constructing the URL to avoid potential issues.

@kkartunov kkartunov merged commit 21331e0 into dev Dec 1, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants