Commit 7c28993f by 同語 Committed by GitHub

fix: list only channel models in unset price models tab (#6126)

Merge pull request #6126 from feitianbubu/fix/unset-tab-channel-models-only
parents bde9b2f4 93e936f7
......@@ -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