Got Cannot read properties of undefined (reading 'cloudprovider.harvesterhci.io/ipam') when viewing or editing config

Rancher Server: v2.7.7
Kubernetes Cluster: RKE1
Version:v1.24.17

We also came across these errors when trying to edit a deployment in a specific namespace.
But the errors were dependent on the used browser.
In Firefox: "t.annotations is undefined "
But in Edge we got:
"Cannot read properties of undefined (reading ‘cloudprovider.harvesterhci.io/ipam’) "

Comparing with older deployments we saw that the deployment that we wanted to edit, had a service attached that was working fine but was missing the annotations part below metadata in the yaml:

Not Working:

apiVersion: v1
kind: Service
metadata:
  creationTimestamp: '2023-09-18T15:11:18Z'
  managedFields:
    - apiVersion: v1
      fieldsType: FieldsV1

Working:

apiVersion: v1
kind: Service
metadata:
  annotations:
    field.cattle.io/description: description for the service
  creationTimestamp: '2021-09-22T11:55:05Z'
  managedFields:
    - apiVersion: v1
      fieldsType: FieldsV1

Once I edited the yaml and pasted the annotation piece, we were able to edit the deployment through the Rancher WebUI