Skip to content
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

Cannot read properties of undefined (reading '_hideOverride') #2176

Open
srkinyon-vw opened this issue Jun 19, 2023 · 0 comments
Open

Cannot read properties of undefined (reading '_hideOverride') #2176

srkinyon-vw opened this issue Jun 19, 2023 · 0 comments

Comments

@srkinyon-vw
Copy link
Collaborator

srkinyon-vw commented Jun 19, 2023

Summary

When selecting a tab under unknown conditions an error occurs on occasion:
Cannot read properties of undefined (reading '_hideOverride')
The error was picked up in our error logging system so it isn't clear what causes it.

Reproduction

Steps to reproduce: Selecting a tab related to the control but under unknown conditions.

Additional context
The error comes up in this spot:

in class TabSetComponent:

webpack:/./node_modules/@healthcatalyst/cashmere/fesm2020/healthcatalyst-cashmere.mjs in selectTab on line 18973:37
18968 /** Sets the currently selected tab by either its numerical index or TabComponent object.
18969 * Passing a value of -1 or a hidden tab will deselect all tabs in the set. */
18970 selectTab(tab, shouldEmit = true) {
18971 this._selectedTab = tab;
18972 const activeTab = typeof tab === 'number' ? this._tabs.toArray()[tab] : tab;
18973 if (tab === -1 || activeTab._hideOverride) {
18974 this.tabContent = null;
18975 if (this._routerEnabled) {
18976 this._routerDeselected = true;
18977 }
18978 this._tabs.toArray().forEach(t => t._active = false);
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

No branches or pull requests

1 participant