fix in edit section directive when resultSave is undefined