Correct caching of image searcher
This commit is contained in:
parent
ac9cca4c51
commit
4694cc8e0f
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ export class ImageSearcher extends UIEventSource<{ key: string, url: string }[]>
|
|||
}
|
||||
|
||||
public static construct(tags: UIEventSource<any>, imagePrefix = "image", loadSpecial = true): ImageSearcher {
|
||||
const key = tags["id"] + " " + imagePrefix + loadSpecial;
|
||||
const key = tags.data["id"] + " " + imagePrefix + loadSpecial;
|
||||
if (ImageSearcher._cache.has(key)) {
|
||||
return ImageSearcher._cache.get(key)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue