feat: add new favorite photo trigger in flickr

This commit is contained in:
Ali BARIN
2022-04-13 01:22:13 +02:00
committed by Ömer Faruk Aydın
parent d4ad8645c9
commit 651cceec14
12 changed files with 131 additions and 16 deletions

View File

@@ -55,15 +55,23 @@ export default function AddAppConnection(props: AddAppConnectionProps): React.Re
const step = steps[stepIndex];
const variables = computeAuthStepVariables(step.arguments, response);
const stepResponse = await processStep(step, variables);
try {
const stepResponse = await processStep(step, variables);
response[step.name] = stepResponse;
response[step.name] = stepResponse;
} catch (err) {
console.log(err);
break;
}
stepIndex++;
if (stepIndex === steps.length) {
onClose();
}
}
setInProgress(false);
onClose?.();
}, [connectionId, key, reconnectionSteps, authenticationSteps, onClose]);
return (