fix: killin it softly (#16666)

pull/16669/head
Alex Boatwright 2020-01-24 09:56:28 -08:00 committed by GitHub
parent 3b7da5df1d
commit 7c2980d9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -164,7 +164,11 @@ class InlineLabelsEditor extends Component<Props, State> {
const {availableLabels} = this
const {isPopoverVisible} = this.state
if (_.isEmpty(availableLabels) && !isPopoverVisible) {
if (_.isEmpty(availableLabels)) {
if (isPopoverVisible) {
return
}
return this.setState({
isPopoverVisible: true,
selectedItemID: null,