Skip to content
Snippets Groups Projects
Commit 2cf5aaac authored by xaralis's avatar xaralis
Browse files

fix: when new program point gets activated via WS, make sure to load the posts

parent 3c6c1bd4
No related branches found
No related tags found
No related merge requests found
Pipeline #2084 passed
import has from "lodash/has";
import { loadPosts } from "actions/posts";
import { markdownConverter } from "markdown";
import { ProgramStore } from "stores";
......@@ -28,4 +29,9 @@ export const handleProgramEntryChanged = (payload) => {
}
}
});
if (has(payload, "is_live") && payload.is_live) {
// Re-load posts - these are bound directly to the program schedule entry.
loadPosts.run({}, { respectCache: false });
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment