Commit 400f918c authored by Scott Hampton's avatar Scott Hampton

Fix function to return consistent data

Instead of returning `false`, we should return
an empty promise so that the return is consistent
no matter what.
parent ff281665
......@@ -37,7 +37,7 @@ export const fetchTestSuite = ({ state, commit, dispatch }, index) => {
const { hasFullSuite } = state.testReports?.test_suites?.[index] || {};
// We don't need to fetch the suite if we have the information already
if (state.hasFullReport || hasFullSuite) {
return false;
return Promise.resolve();
}
dispatch('toggleLoading');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment