Web: Common: Removed mobx warnings.

This commit is contained in:
Tatiana Lopaeva 2022-12-30 11:54:39 +03:00
parent cf445c644d
commit f28bbebbde
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import { makeAutoObservable } from "mobx";
import { makeAutoObservable, runInAction } from "mobx";
import api from "../api";
import { TariffState } from "../constants";
@ -59,7 +59,9 @@ class CurrentTariffStatusStore {
if (!res) return;
this.portalTariffStatus = res;
runInAction(() => {
this.portalTariffStatus = res;
});
};
}

View File

@ -1,4 +1,4 @@
import { makeAutoObservable } from "mobx";
import { makeAutoObservable, runInAction } from "mobx";
import api from "../api";
import { getConvertedSize } from "@docspace/common/utils";
import toastr from "@docspace/components/toast/toastr";
@ -82,9 +82,11 @@ class PaymentQuotasStore {
if (!res) return;
this.portalPaymentQuotas = res[0];
runInAction(() => {
this.portalPaymentQuotas = res[0];
this.portalPaymentQuotasFeatures = res[0].features;
this.portalPaymentQuotasFeatures = res[0].features;
});
this.setIsLoaded(true);
} catch (e) {