mirror of https://github.com/openclaw/openclaw.git
fix: guard multiselect return against cancel (null/undefined)
This commit is contained in:
parent
f6ea75ed9f
commit
c632308dcc
|
|
@ -51,7 +51,7 @@ export async function setupMemoryOptimization(
|
|||
],
|
||||
});
|
||||
|
||||
const choices = new Set(selected.filter((v) => v !== "__skip__"));
|
||||
const choices = new Set((selected ?? []).filter((v) => v !== "__skip__"));
|
||||
if (choices.size === 0) {
|
||||
return cfg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue