Skip to content

Commit b35661a

Browse files
authored
Merge pull request #1609 from appwrite/fix-template-permissions
Fix a crash from Perplexity template setup
2 parents e892ff2 + 026ffcd commit b35661a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/lib/wizards/functions/steps/templatePermissions.svelte

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
onMount(() => {
1111
$templateConfig.execute = $template.permissions.includes('any');
1212
templateScopes = scopes
13-
.filter((scope) => $template.scopes.includes(scope.scope))
13+
// hot fix for perplexity chat template,
14+
// backend doesn't have scopes for this template.
15+
// TODO: @itznotabug fix on backend too.
16+
.filter((scope) => ($template.scopes ?? []).includes(scope.scope))
1417
.map((scope) => ({
1518
...scope,
1619
active: true

0 commit comments

Comments
 (0)