Hide
When a user deletes one of their search history items (and there is more than 1 in their history) then the wrong item is being deleted.
The deletes are being done by their array index as opposed to the search id, so the solution is to delete by search id instead.
Show
When a user deletes one of their search history items (and there is more than 1 in their history) then the wrong item is being deleted.
The deletes are being done by their array index as opposed to the search id, so the solution is to delete by search id instead.