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

Bugfix: Add null check for null converted treenode icon so .startsWith does not throw #9304

Merged
merged 1 commit into from Nov 25, 2020

Conversation

nzdev
Copy link
Contributor

@nzdev nzdev commented Oct 29, 2020

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes

Description

Adds a check so ensure the converted treenode icon is not undefined before calling converted.startswith(.) which will throw.
This issue causes the content/settings/media trees not to work. No way to fix the issue from the cms

@mikecp mikecp merged commit 8d96c6e into umbraco:v8/contrib Nov 25, 2020
@mikecp
Copy link
Contributor

mikecp commented Nov 25, 2020

Hi @nzdev ,

Thanks for your PR! Nice catch :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants