File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/Livewire/Project/Shared
resources/views/livewire/project/database Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,8 @@ public function deleteTag(string $id)
82
82
{
83
83
try {
84
84
$ this ->resource ->tags ()->detach ($ id );
85
-
86
85
$ found_more_tags = Tag::ownedByCurrentTeam ()->find ($ id );
87
- if ($ found_more_tags ->applications ()->count () == 0 && $ found_more_tags ->services ()->count () == 0 ) {
86
+ if ($ found_more_tags && $ found_more_tags ->applications ()->count () == 0 && $ found_more_tags ->services ()->count () == 0 ) {
88
87
$ found_more_tags ->delete ();
89
88
}
90
89
$ this ->refresh ();
@@ -96,6 +95,7 @@ public function deleteTag(string $id)
96
95
97
96
public function refresh ()
98
97
{
98
+ $ this ->resource ->refresh (); // Remove this when legacy_model_binding is false
99
99
$ this ->loadTags ();
100
100
$ this ->reset ('newTags ' );
101
101
}
Original file line number Diff line number Diff line change 99
99
<livewire:project .shared.metrics :resource =" $database" />
100
100
</div >
101
101
<div x-cloak x-show =" activeTab === 'tags'" >
102
- <livewire:project .shared.tags :resource =" $database" />
102
+ <livewire:project .shared.tags :resource =" $database" lazy />
103
103
</div >
104
104
<div x-cloak x-show =" activeTab === 'danger'" >
105
105
<livewire:project .shared.danger :resource =" $database" />
You can’t perform that action at this time.
0 commit comments