Fixed ui-grid when adding or updating any entity