fix(canvas): unblock deploy when runtime has no required env vars #1022

Closed
hongming wants to merge 1 commits from fix/openclaw-empty-required-keys into main
+2 -2
View File
@@ -344,7 +344,7 @@ function ProviderPickerModal({
// wrapper's bounds instead of the viewport.
if (typeof document === "undefined") return null;
const allSaved = entries.length > 0 && entries.every((e) => e.saved);
const allSaved = entries.every((e) => e.saved); // vacuously true for [] — no required keys means deploy is always ready
const anySaving = entries.some((e) => e.saving);
const runtimeLabel = runtime
.replace(/[-_]/g, " ")
@@ -616,7 +616,7 @@ function AllKeysModal({
if (!open) return null;
if (typeof document === "undefined") return null;
const allSaved = entries.length > 0 && entries.every((e) => e.saved);
const allSaved = entries.every((e) => e.saved); // vacuously true for [] — no required keys means deploy is always ready
const anySaving = entries.some((e) => e.saving);
const runtimeLabel = runtime
.replace(/[-_]/g, " ")