mirror of
https://github.com/tcgdex/compiler.git
synced 2025-06-07 16:29:57 +00:00
Fixed set cards not found when using ids
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
ddc8916d08
commit
a4d9f8f5b2
@ -36,7 +36,7 @@ export default class implements Endpoint<SetList, SetSingle, CardSingle, Array<S
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async sub(common: Array<Set>, item: string) {
|
public async sub(common: Array<Set>, item: string) {
|
||||||
const set = common.find((s) => s.name[this.lang] === item)
|
const set = common.find((s) => s.name[this.lang] === item || s.id === item)
|
||||||
|
|
||||||
if (!set || !isSetAvailable(set, this.lang)) return undefined
|
if (!set || !isSetAvailable(set, this.lang)) return undefined
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user