Removed length check

This commit is contained in:
Nicolai Ort 2021-08-21 10:23:59 +02:00
parent 5f81f55987
commit 7da22287ff
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
2 changed files with 2 additions and 2 deletions

View File

@ -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.
const unsubscribe = UserStore.subscribe((value) => {
if (value.isLoggedIn && urls.length == 0) {
if (value.isLoggedIn) {
urlQuery = Apiclient.getUrls().then((res) => {
urls = res;
});

View File

@ -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.
const unsubscribe = UserStore.subscribe((value) => {
if (value.isLoggedIn && visits.length == 0) {
if (value.isLoggedIn) {
visitQuery = Apiclient.getVisits().then((res) => {
visits = res;
});