mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac
This commit is contained in:
parent
b2befd486f
commit
235489cfc5
2 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue