This commit is contained in:
Timothy Jaeryang Baek 2025-05-30 01:33:49 +04:00
parent b2befd486f
commit 235489cfc5
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@
command = prompt.command.at(0) === '/' ? prompt.command.slice(1) : prompt.command;
content = prompt.content;
accessControl = prompt?.access_control ?? null;
accessControl = prompt?.access_control === undefined ? {} : prompt?.access_control;
}
});
</script>

View File

@ -42,7 +42,7 @@
title: _prompt.title,
command: _prompt.command,
content: _prompt.content,
access_control: _prompt?.access_control ?? null
access_control: _prompt?.access_control === undefined ? {} : _prompt?.access_control
};
} else {
goto('/workspace/prompts');