message: remove sdf-endpoint extension if endpoint field is cleared
diff: @@ -42,6 +42,11 @@ const MetadataEditor = (): JSX.Element => {
  }
  };
  + const removeMetaExtension = (extensionUrl: string) => {
  + const extensions = qMetadata.extension ? qMetadata.extension.filter((x) => x.url !== extensionUrl) : [];
  + updateMeta(IQuestionnaireMetadataType.extension, extensions);
  + };
  +
  return (
  <div id="metadata-editor">
  <Accordion title="Skjemadetaljer">
  @@ -108,14 +113,18 @@ const MetadataEditor = (): JSX.Element => {
  qMetadata?.extension?.find((ex) => ex.url === IExtentionType.endpoint)?.valueReference
  ?.reference ?? ''
  }
  - onBlur={(e) =>
  + onBlur={(e) => {
  + if (!e.target.value) {
  + removeMetaExtension(IExtentionType.endpoint);
  + } else {
  updateMetaExtension({
  url: IExtentionType.endpoint,
  valueReference: {
  reference: e.target.value,
  },
  - })
  + });
  }
  + }}
  />
  </FormField>
  <FormField label="Visning av knapperad">
  