fixed 1 circular dependency

part of #2462
This commit is contained in:
Miodec 2022-02-10 23:25:39 +01:00
parent a8d0d807f2
commit 099cbe4d8f
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,6 @@ import * as Misc from "../misc";
import * as DB from "../db";
import Config from "../config";
import * as Notifications from "../elements/notifications";
import * as Account from "../pages/account";
export let defaultResultFilters = {
difficulty: {
@ -269,8 +268,6 @@ export function updateActive() {
chartString += addText("tags");
$(".pageAccount .group.chart .above").html(chartString);
Account.update();
}
export function toggle(group, filter) {

View file

@ -658,6 +658,7 @@ export function update() {
console.error(e);
ResultFilters.reset();
ResultFilters.updateActive();
update();
}
//filters done
//=======================================
@ -1072,6 +1073,7 @@ export function update() {
TodayTracker.addAllFromToday();
if (d) {
ResultFilters.updateActive();
update();
} else {
setTimeout(() => {
UI.changePage("");