From 7c2980d9ea178e15ab83e38ea2e9f77ffe41ee19 Mon Sep 17 00:00:00 2001 From: Alex Boatwright Date: Fri, 24 Jan 2020 09:56:28 -0800 Subject: [PATCH] fix: killin it softly (#16666) --- .../shared/components/inlineLabels/InlineLabelsEditor.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/shared/components/inlineLabels/InlineLabelsEditor.tsx b/ui/src/shared/components/inlineLabels/InlineLabelsEditor.tsx index 6de930b46c..1fb7ae7d93 100644 --- a/ui/src/shared/components/inlineLabels/InlineLabelsEditor.tsx +++ b/ui/src/shared/components/inlineLabels/InlineLabelsEditor.tsx @@ -164,7 +164,11 @@ class InlineLabelsEditor extends Component { const {availableLabels} = this const {isPopoverVisible} = this.state - if (_.isEmpty(availableLabels) && !isPopoverVisible) { + if (_.isEmpty(availableLabels)) { + if (isPopoverVisible) { + return + } + return this.setState({ isPopoverVisible: true, selectedItemID: null,