F
Filament8mo ago
Fally

Problem with dashboard loading all the widgets even those not defined in the panel provider

Hello, I made a stats overview widget to display in the header of a custom page. Even though I haven't added it to the widgets() function in the Panel Provider it still loads it on the dashboard after the defined widgets. How do I get rid of it? I only want to display it on the custom page I made. Do i have to override the Dashboard page?
4 Replies
Dennis Koch
Dennis Koch8mo ago
It’s probably because of discoverWidgets() just some lines before that
Fally
FallyOP8mo ago
If I comment out that line, dashboard is fine but custom page complains about not finding a view for the widget.
Dennis Koch
Dennis Koch8mo ago
Makes sense. Hm. I don’t know another way than overriding the dashboard page then.
Fally
FallyOP8mo ago
I don't remember this being an issue in v2 though but i think i used them in resources not in custom pages
Want results from more Discord servers?
Add your server