Skip to content

Conversation

@andyjmaclean
Copy link
Contributor

No description provided.

Copy link
Contributor

@jeortizquan jeortizquan left a comment

Choose a reason for hiding this comment

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

a suggestion, see if this applies.


isAncestorMode(): boolean {
return this.sandboxNavConf[2].stepSubClass === 'ancestor-mode';
return (this.sandboxNavConf[2].stepSubClass ?? '').includes(this.ANCESTOR_MODE);
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion this.sandboxNavConf[2] can be a variable to be accessed with a name? e.g.
this.sandboxNavConf[ITEM_NAME_BEING_ACCESSED] where const ITEM_NAME_BEING_ACCESSED=2
or
var navigationConfiguration = this.sandboxNavConf[2]
saying this from readability perspective when coming back and read the code we know what that 2 item means.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I have plans to refactor this further in the future in the future.

@andyjmaclean andyjmaclean merged commit 24a9367 into develop Jan 6, 2026
6 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