Skip to content

Commit

Permalink
Merge pull request #1609 from appwrite/fix-template-permissions
Browse files Browse the repository at this point in the history
Fix a crash from Perplexity template setup
  • Loading branch information
ItzNotABug authored Jan 13, 2025
2 parents e892ff2 + 026ffcd commit b35661a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/wizards/functions/steps/templatePermissions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b35661a

Please sign in to comment.