Skip to content

Commit 543a1bd

Browse files
committed
internal func check & ready event actually exists now
1 parent d0eee5b commit 543a1bd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/core/api/api.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ export default class API<T extends Identifiable> {
6060
* @param raw Array
6161
*/
6262
setData(raw: T[]) {
63-
this.raw.splice(0, this.raw.length, ...raw);
64-
if (this.fuse) this.fuse.setCollection(this.raw);
63+
if ((new Error()).stack!.match(/AzurAPI\.set/)) {
64+
this.raw.splice(0, this.raw.length, ...raw);
65+
if (this.fuse) this.fuse.setCollection(this.raw);
66+
}
6567
}
6668

6769
/**

0 commit comments

Comments
 (0)