-
Notifications
You must be signed in to change notification settings - Fork 18
Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing #301
Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing #301
Conversation
…ngestion data missing
will cherry-pick it to 1.10, 1.9 |
return detector && isDetectorInitializing && detector.initProgress | ||
return detector && | ||
isDetectorInitializing && | ||
detector.initProgress && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use lodash get ?
get(detector, 'initProgress. estimatedMinutesLeft')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will use it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea, probably many places within this page and other places in the plugin where we should change to use lodash get
to make it simpler
Small: can you manually add to 1.10 release notes? |
good point. will add it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this case!
…ngestion data missing (#301) * Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing
…ngestion data missing (#301) * Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing
Issue #, if available:
Description of changes:
Fix bug where undefined is shown on UI for estimatedMins in case of ingestion data missing
Before
After
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.