Fixes bug where delete folder / artifact modal only fired the first time.