Added safeguard for random updates
This commit is contained in:
parent
f2ec82762e
commit
8bcab4661b
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
// Yes i know this isn't the best way to implement this, but linkylinky dashboard is just a oneshot sideproject r/n.
|
// Yes i know this isn't the best way to implement this, but linkylinky dashboard is just a oneshot sideproject r/n.
|
||||||
const unsubscribe = UserStore.subscribe((value) => {
|
const unsubscribe = UserStore.subscribe((value) => {
|
||||||
if (value.isLoggedIn) {
|
if (value.isLoggedIn && urls.length == 0) {
|
||||||
urlQuery = Apiclient.getUrls().then((res) => {
|
urlQuery = Apiclient.getUrls().then((res) => {
|
||||||
urls = res;
|
urls = res;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue