refactor: only get instanceSettings once from db

This commit is contained in:
Andras Bacsai committed 2024-07-12 12:51:55 +02:00
1 parent 21612cccf7
commit 88f33be5b6
23 files changed
+54 -51

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ class Index extends Component
if (data_get(currentTeam(), 'subscription') && isSubscriptionActive()) {
return redirect()->route('subscription.show');
}
$this->settings = InstanceSettings::get();
$this->settings = view()->shared('instanceSettings');
$this->alreadySubscribed = currentTeam()->subscription()->exists();
}