mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: perplexity template crash.
This commit is contained in:
@@ -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 templates,
|
||||
// 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