Web: Common: Removed mobx warnings.
This commit is contained in:
parent
cf445c644d
commit
f28bbebbde
@ -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;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user