mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #1609 from appwrite/fix-template-permissions
Fix a crash from Perplexity template setup
This commit is contained in:
1 file changed
+4
-1
@@ -10,7 +10,10 @@
|
||||
onMount(() => {
|
||||
$templateConfig.execute = $template.permissions.includes('any');
|
||||
templateScopes = scopes
|
||||
.filter((scope) => $template.scopes.includes(scope.scope))
|
||||
// hot fix for perplexity chat template,
|
||||
// backend doesn't have scopes for this template.
|
||||
// TODO: @itznotabug fix on backend too.
|
||||
.filter((scope) => ($template.scopes ?? []).includes(scope.scope))
|
||||
.map((scope) => ({
|
||||
...scope,
|
||||
active: true
|
||||
|
||||
Reference in new issue
Block a user