Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Admin tokens: the form compares its ticks with the read-only preset as a list it doesn't change

Adarsh27156b258104
diff --git a/src/components/admin-tokens.tsx b/src/components/admin-tokens.tsx
index 2e6a35f7..70297c51 100644
--- a/src/components/admin-tokens.tsx
+++ b/src/components/admin-tokens.tsx
@@ -133,7 +133,7 @@ function CreateForm({ scopes, onMade, onCancel }: { scopes: AdminTokensAnswer["s
const [expiry, setExpiry] = useState("90");
const [busy, setBusy] = useState(false);
const all = scopes.map((s) => s.id);
- const same = (ids: string[]) => ids.length === picked.size && ids.every((s) => picked.has(s));
+ const same = (ids: readonly string[]) => ids.length === picked.size && ids.every((s) => picked.has(s));
const create = async () => {
setBusy(true);
try {