- saving progress;
This commit is contained in:
@@ -273,6 +273,10 @@ const BandoFlowEdit = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
const isAsyncRequest = storeGet.main.isAsyncRequest();
|
||||||
|
if (isAsyncRequest) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ('PUBLISH' === bandoStatus) {
|
if ('PUBLISH' === bandoStatus) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -330,7 +334,8 @@ const BandoFlowEdit = () => {
|
|||||||
}, [chosenMainField]);
|
}, [chosenMainField]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if ('PUBLISH' === bandoStatus) {
|
const isAsyncRequest = storeGet.main.isAsyncRequest();
|
||||||
|
if ('PUBLISH' === bandoStatus || isAsyncRequest) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
storeSet.main.flowData([]);
|
storeSet.main.flowData([]);
|
||||||
@@ -361,6 +366,10 @@ const BandoFlowEdit = () => {
|
|||||||
}, [initialForm]);
|
}, [initialForm]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
const isAsyncRequest = storeGet.main.isAsyncRequest();
|
||||||
|
if (isAsyncRequest) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ('PUBLISH' === bandoStatus) {
|
if ('PUBLISH' === bandoStatus) {
|
||||||
} else {
|
} else {
|
||||||
const filtered = flowData.filter(o => o.formId === initialForm);
|
const filtered = flowData.filter(o => o.formId === initialForm);
|
||||||
@@ -396,6 +405,10 @@ const BandoFlowEdit = () => {
|
|||||||
}, [forms]);
|
}, [forms]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
const isAsyncRequest = storeGet.main.isAsyncRequest();
|
||||||
|
if (isAsyncRequest) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const chosenFieldItem = head(flowData.filter(o => !isEmpty(o.chosenField)));
|
const chosenFieldItem = head(flowData.filter(o => !isEmpty(o.chosenField)));
|
||||||
if (chosenFieldItem) {
|
if (chosenFieldItem) {
|
||||||
setChosenMainField(chosenFieldItem.chosenField);
|
setChosenMainField(chosenFieldItem.chosenField);
|
||||||
|
|||||||
Reference in New Issue
Block a user