Skip to content

Commit

Permalink
remove loading
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Jul 14, 2021
1 parent f8bd02a commit aef9916
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
/**
* External dependencies
*/
import {
get,
unescape as unescapeString,
without,
find,
some,
isArray,
} from 'lodash';
import { get, unescape as unescapeString, without, find, some } from 'lodash';

/**
* WordPress dependencies
Expand Down Expand Up @@ -155,7 +148,6 @@ function HierarchicalTermSelector( {
addTerm,
taxonomy,
terms,
loading,
slug,
availableTerms,
hasCreateAction,
Expand Down Expand Up @@ -364,7 +356,7 @@ function HierarchicalTermSelector( {
'' !== filterValue ? filteredTermsTree : availableTermsTree
) }
</div>,
! loading && hasCreateAction && (
hasCreateAction && (
<Button
key="term-add-button"
onClick={ onToggleForm }
Expand Down Expand Up @@ -442,7 +434,6 @@ export default compose( [
)
: false,
terms,
loading: ! isArray( queriedTerms ),
availableTerms: queriedTerms || [],
availableTermsTree: sortBySelected(
buildTermsTree( queriedTerms || [] ),
Expand Down

0 comments on commit aef9916

Please sign in to comment.