init/get-main-data: disable some queries

This commit is contained in:
vchikalkin 2024-02-16 12:08:14 +03:00
parent 6b7c679a0d
commit c092b8f47c

View File

@ -17,13 +17,13 @@ const currentDate = dayjs().utc(false).toISOString();
* @param {*} onCompleted
*/
function getMainData({ query }, onCompleted) {
query({
query: CRMTypes.GetLeaseObjectTypesDocument,
}).then(({ data }) => {
onCompleted({
selectLeaseObjectType: data?.evo_leasingobject_types,
});
});
// query({
// query: CRMTypes.GetLeaseObjectTypesDocument,
// }).then(({ data }) => {
// onCompleted({
// selectLeaseObjectType: data?.evo_leasingobject_types,
// });
// });
query({
query: CRMTypes.GetGpsBrandsDocument,
@ -67,21 +67,21 @@ function getMainData({ query }, onCompleted) {
});
});
query({
query: CRMTypes.GetBrandsDocument,
}).then(({ data }) => {
onCompleted({
selectBrand: data?.evo_brands,
});
});
// query({
// query: CRMTypes.GetBrandsDocument,
// }).then(({ data }) => {
// onCompleted({
// selectBrand: data?.evo_brands,
// });
// });
query({
query: CRMTypes.GetDealersDocument,
}).then(({ data }) => {
onCompleted({
selectDealer: data?.dealers,
});
});
// query({
// query: CRMTypes.GetDealersDocument,
// }).then(({ data }) => {
// onCompleted({
// selectDealer: data?.dealers,
// });
// });
query({
query: CRMTypes.GetTelematicTypesDocument,