From 98589ebeab6c60534719550bcb4e4d209213a954 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Fri, 26 Jul 2024 23:21:03 +0330 Subject: [PATCH] fixed bug setting duplicate --- resources/views/segments/post/PostSidebar/PostSidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/segments/post/PostSidebar/PostSidebar.php b/resources/views/segments/post/PostSidebar/PostSidebar.php index 70b892e..4f3d2af 100644 --- a/resources/views/segments/post/PostSidebar/PostSidebar.php +++ b/resources/views/segments/post/PostSidebar/PostSidebar.php @@ -21,7 +21,7 @@ class PostSidebar } public static function onRemove(Part $part = null) { - + Setting::where('key',$part->area->name . '_' . $part->part.'_invert')->first()?->delete(); } public static function onMount(Part $part = null) {