Last active
January 7, 2021 17:39
-
-
Save tfiechowski/df9587f6b38509108850ba4169d0af1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function performUpdates() { | |
if (!hasPendingUpdates) { | |
return; | |
} | |
clearPendingUpdates(); | |
applyUpdates(); // update photos list with pendingUpdates | |
try { | |
await onUpdate(pendingUpdates); | |
removePhotosLockedFlag(); | |
} catch (exception) { | |
revertPhotosToOriginalState(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment