fix: getNumberId Error: Evaluation failed: TypeError: e.isLid is not a function (#1571)
This commit is contained in:
parent
af431df1c9
commit
73e4b3b6e0
1 changed files with 2 additions and 1 deletions
|
|
@ -949,7 +949,8 @@ class Client extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
return await this.pupPage.evaluate(async number => {
|
return await this.pupPage.evaluate(async number => {
|
||||||
const result = await window.Store.QueryExist(number);
|
const wid = window.Store.WidFactory.createWid(number);
|
||||||
|
const result = await window.Store.QueryExist(wid);
|
||||||
if (!result || result.wid === undefined) return null;
|
if (!result || result.wid === undefined) return null;
|
||||||
return result.wid;
|
return result.wid;
|
||||||
}, number);
|
}, number);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue