add back accidently removed line of code

This commit is contained in:
kevmodrome 2020-12-16 15:31:20 +01:00
parent 17dd8abf58
commit b7d7968009
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@
// make sure we only fetch once, unless API Key is changed
if (isApiKeyValid === undefined || apiKey !== lastApiKey) {
lastApiKey = apiKey
// svelte reactivity was causing a requst to get fired mutiple times
// so, we make everything await the same promise, if one exists
if (!fetchApiKeyPromise) {