fix(edit) add data check condition