From 9616730cd5076356b655c27296997e9150aced51 Mon Sep 17 00:00:00 2001 From: Adam Weston Date: Tue, 5 Dec 2023 09:19:44 -0500 Subject: [PATCH] Fix: add additional check on renderhook registration --- src/CuratorServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CuratorServiceProvider.php b/src/CuratorServiceProvider.php index d3a8c07b..d7e2b4f3 100644 --- a/src/CuratorServiceProvider.php +++ b/src/CuratorServiceProvider.php @@ -57,7 +57,7 @@ public function packageBooted(): void Css::make('curator', __DIR__ . '/../resources/dist/curator.css')->loadedOnRequest(), ], 'awcodes/curator'); - if (Filament::getCurrentPanel()) { + if (Filament::getCurrentPanel() && Filament::getCurrentPanel()->hasPlugin('awcodes/curator')) { FilamentView::registerRenderHook( 'panels::body.end', fn (): View => view('curator::components.modals.modal')