Ui builder issue
# help-with-umbraco
j
Hello Can we connect I thing I can fix this
a
Sorry unable to connect
Restricted
j
I have msgd
a
Could you tell me steps which one i should check
Hi
Could help me in this
j
It's a known issue which should be fixed with Umbraco 13.1 once it's out: https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/81
a
Okay , thanks
@Jemayn Can you please help me in one more thing?
j
If you elaborate I will try 🙂
a
When i used ui builder show summary dashboard
Repository count method not hit
@Jemayn could you please help me in this issue
j
Not sure on the specific implementation that gives you that view, but in my experience it hits that repository part when I used a card on the collection: https://docs.umbraco.com/umbraco-ui-builder/cards/count-cards
a
Ok , i will try that if anything happens i will tell you, thanks
@Jemayn it's not working i created new card but it still shows zero
I also use this one but still not work
Into umbraco 10 it work fine
But i am now upgrade into umbraco 13
j
Weird, I have a site running Umbraco 13.0.3 and UI Builder 13.0.0 and I get it on cards using this code:
Copy code
csharp
protected override long GetCountImpl(Expression<Func<Dealer, bool>> whereClause)
{
    var allItems = _dealerService.GetAllCached().GetAwaiter().GetResult();

    if (allItems is null)
    {
        return 0;
    }

    if (whereClause is not null) // Despite the compiler saying otherwise whereClause can be null
    {
        allItems = allItems.Where(whereClause.Compile());
    }

    return allItems.Count();
}
a
I used UI builder 13.0.1
15 Views