Corrected code to stop error being given to promise whenever a modal is closed
Updated assets gen