message: Fix legacy operand form runtime error
diff: @@ -818,11 +818,11 @@ export const DEPRECATED_CreateOperandForm: React.FC<OperandFormProps> = ({
  .split(SpecCapability.k8sResourcePrefix)[1]
  .replace('core~v1~', '');
  const k8sModel = modelFor(groupVersionKind);
  - const selectedKey = currentValue ? `${currentValue}-${k8sModel.kind}` : null;
  -
  - return (
  - <div>
  - {!_.isUndefined(model) ? (
  + if (!k8sModel) {
  + // eslint-disable-next-line no-console
  + console.warn('[Legacy CreateOperandForm] Cluster does not have resource', groupVersionKind);
  + }
  + return k8sModel ? (
  <ListDropdown
  id={id}
  resources={[
  @@ -834,13 +834,9 @@ export const DEPRECATED_CreateOperandForm: React.FC<OperandFormProps> = ({
  desc={displayName}
  placeholder={`Select ${kindForReference(groupVersionKind)}`}
  onChange={(value) => handleFormDataUpdate(path, value)}
  - selectedKey={selectedKey}
  + selectedKey={currentValue ? `${currentValue}-${k8sModel?.kind}` : null}
  />
  - ) : (
  - <span>Cluster does not have resource {groupVersionKind}</span>
  - )}
  - </div>
  - );
  + ) : null;
  }
  if (capabilities.includes(SpecCapability.checkbox)) {
  return (
  