Commit 93e936f7 by feitianbubu

fix: list only channel models in unset price models tab

parent bde9b2f4
......@@ -216,11 +216,10 @@ const ModelRatioVisualEditorComponent = forwardRef<
const savedByName = new Map(savedRows.map((row) => [row.name, row]))
const draftByName = new Map(draftRows.map((row) => [row.name, row]))
const modelNames = new Set([
...(candidateModelNames ?? []),
...savedByName.keys(),
...draftByName.keys(),
])
const modelNames =
filterMode === 'unset'
? new Set(candidateModelNames ?? [])
: new Set([...savedByName.keys(), ...draftByName.keys()])
return [...modelNames]
.map((name) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment