Commit 2810ba8f authored by Coung Ngo's avatar Coung Ngo

Fix Jira importer immutable cache update

The recent update to make the Jira importer cache update
immutable does not properly work so this commit fixes it.
parent 99e44606
...@@ -22,7 +22,11 @@ export const addInProgressImportToStore = (store, jiraImportStart, fullPath) => ...@@ -22,7 +22,11 @@ export const addInProgressImportToStore = (store, jiraImportStart, fullPath) =>
...queryDetails, ...queryDetails,
data: produce(sourceData, draftData => { data: produce(sourceData, draftData => {
draftData.project.jiraImportStatus = IMPORT_STATE.SCHEDULED; // eslint-disable-line no-param-reassign draftData.project.jiraImportStatus = IMPORT_STATE.SCHEDULED; // eslint-disable-line no-param-reassign
draftData.project.jiraImports.nodes.push(jiraImportStart.jiraImport); // eslint-disable-next-line no-param-reassign
draftData.project.jiraImports.nodes = [
...sourceData.project.jiraImports.nodes,
jiraImportStart.jiraImport,
];
}), }),
}); });
}; };
......
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