Skip to content

Conversation

@mayorovad
Copy link

Summary
Fixed Visibility story. When porting from examples, result variable in overriden function isVisible() left undefined, so function always return undefined, hence all cells are invisible.

const isVisible = function () {
// TODO super cannot be used here
// let result = super.isVisible();
let result;
if (result && this.value != null) {
result =
(showOne && this.value == '1') ||
(showTwo && this.value == '2') ||
(showThree && this.value == '3');
}
return result;
};

Init result with true for story begin to work.

Description for the changelog
Fixed bug in Visibility story in Storybook

@tbouffard tbouffard added the bug Something isn't working label Oct 7, 2022
@tbouffard tbouffard merged commit a617bb6 into maxGraph:development Oct 9, 2022
@mayorovad mayorovad deleted the visibility-story-fix branch October 13, 2022 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants