Skip to content

[Management] Prevent react warnings in index pattern creation - #16520

Merged
chrisronline merged 2 commits into
elastic:6.2from
chrisronline:fix/16304
Feb 8, 2018
Merged

chrisronline merged 2 commits into
elastic:6.2from
chrisronline:fix/16304

Conversation

@chrisronline

@chrisronline chrisronline commented Feb 5, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #16304

Checks for node existence before attempting to mount or unmount.

This will only go into 6.2, as #16129 adds this fix to 6.3 and beyond. That PR didn't go into 6.1 as it's not just a bug fix.

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

esService,
goToNextStep,
) {
const node = document.getElementById(domElementId);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe make this into a function so both places can use it without repeating code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure!

@chrisronline

Copy link
Copy Markdown
Contributor Author

@jen-huang Ready for another pass!

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@jen-huang jen-huang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@jimgoodwin jimgoodwin added v6.2.2 and removed v6.2.1 labels Feb 8, 2018
@chrisronline
chrisronline merged commit b699477 into elastic:6.2 Feb 8, 2018
@chrisronline
chrisronline deleted the fix/16304 branch February 8, 2018 18:48
@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

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.

5 participants