mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 22:37:38 -05:00
refac
This commit is contained in:
1 parent
f4cf2ca0c7
commit
ae7df17cea
1 file changed
+3
-2
@@ -157,10 +157,11 @@
|
||||
|
||||
async function load() {
|
||||
if (!terminalId) return;
|
||||
// The form fills from the terminal alone; machines and access load beside it.
|
||||
const [template, grants] = await Promise.all([
|
||||
templatesApi(path(terminalId)),
|
||||
templatesApi(`${path(terminalId)}/access`),
|
||||
loadMachines()
|
||||
templatesApi(`${path(terminalId)}/access`).catch(() => []),
|
||||
loadMachines().catch(() => (machines = []))
|
||||
]);
|
||||
const data = template?.data ?? {};
|
||||
name = data.name ?? '';
|
||||
|
||||
Reference in new issue
Block a user