in src/store/general/actions.js [406:429]
export async function fetchDeliveryInfoList(
{ commit }) {
try {
let infoList = null;
console.group("store/general/actions/fetchdeliveryinfolist");
commit("SET_LOADER", true);
commit("SET_DELIVERYLIST", []);
const {
// @ts-ignore
data: { listDeliveryInfos: { items: results } }
} = await API.graphql(graphqlOperation(listDeliveryInfos));
infoList = results
commit("SET_DELIVERYLIST", infoList);
commit("SET_LOADER", false);
console.groupEnd();
} catch (error) {
console.error(error);
commit("SET_LOADER", false);
console.groupEnd();
throw error;
}
}