how to not update previous value in array - SolidJS