Skip to content

Conversation

@safydy-r
Copy link
Member

The problem:
If we try to enable the resource viewer on community version by adding resourceViewer as part of enabledFeatures , we got this error.
Screenshot 2023-04-25 142858

It happens because by default we set visibleBlocks as null but we call visibleBlocks.includes(block.uuid) in a condition

<resource-viewer-block
v-for="block in activeFlow?.blocks ?? []"
v-show="visibleBlocks.includes(block.uuid)"
v-show="visibleBlocks === null || visibleBlocks.includes(block.uuid)"
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm proposing here to always display those block if the visibleBlocks is null, which would allow us to make a test on that edge case scenario.

Copy link
Collaborator

@bulatgab bulatgab left a comment

Choose a reason for hiding this comment

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

And we already had the default value for visibleBlocks set to null 👍

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.

5 participants