Skip to content

Commit

Permalink
Remove uneeded condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed May 6, 2021
1 parent 5921f9b commit bfb80eb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/autocomplete-js/src/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ export function renderPanel<TItem extends BaseItem>(
</div>
)}

{!items.length &&
source.templates.noResults &&
(state.query || state.isOpen) ? (
{source.templates.noResults && items.length === 0 ? (
<div className={classNames.sourceNoResults}>
{source.templates.noResults({
components,
Expand Down

0 comments on commit bfb80eb

Please sign in to comment.