Skip to content

Commit

Permalink
fix(Favorites): Render "No results" when there are no favorites (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafakus committed Jul 29, 2024
1 parent 75fac59 commit 426469d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class SceneByVariableRepeaterGrid extends SceneObjectBase<SceneByVariable
shouldRenderItems(newItems: SceneByVariableRepeaterGridState['items']) {
const { items } = this.state;

if (items.length !== newItems.length) {
if (!newItems.length || items.length !== newItems.length) {
return true;
}

Expand Down

1 comment on commit 426469d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test coverage

Lines Statements Branches Functions
Coverage: 12%
12.58% (470/3736) 9.81% (138/1406) 9.49% (108/1138)

Please sign in to comment.