Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: maarg job enum description not showing up while first time fetching of the maargjobs (#734) #766

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/store/modules/maargJob/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { MaargJobService } from '@/services/MaargJobService'
const actions: ActionTree<JobState, RootState> = {
async fetchMaargJobs({ commit, dispatch }, jobTypeEnumIds){
const productStoreId = store.getters["user/getCurrentEComStore"]?.productStoreId
const maargJobEnums = store.getters["maargJob/getMaargJobEnums"]

let resp = {} as any;
const maargJobs = {} as any;
Expand All @@ -23,6 +22,7 @@ const actions: ActionTree<JobState, RootState> = {

const responses = await Promise.allSettled(jobs.map((job: any) => MaargJobService.fetchMaargJobInfo(job.jobName)))
await dispatch("fetchMaargJobEnums", jobEnumIdsToFetch)
const maargJobEnums = store.getters["maargJob/getMaargJobEnums"]

responses.map((response: any) => {
if(response.status === "fulfilled") {
Expand Down
Loading