mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
fix: speedup plugin overview page
This commit is contained in:
parent
6d7968a7b0
commit
d3690c9e10
1 changed files with 1 additions and 4 deletions
|
|
@ -38,10 +38,7 @@ new class extends Component {
|
|||
|
||||
public function refreshPlugins(): void
|
||||
{
|
||||
$userPlugins = auth()->user()?->plugins?->map(function ($plugin) {
|
||||
return $plugin->toArray();
|
||||
})->toArray();
|
||||
|
||||
$userPlugins = auth()->user()?->plugins?->makeHidden(['render_markup', 'data_payload'])->toArray();
|
||||
$this->plugins = array_merge($this->native_plugins, $userPlugins ?? []);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue