Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

fix: link crash when url is not valid #1591

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import setupCoverage from '@cypress/code-coverage/task';
import setupCoverage from '@cypress/code-coverage/task.js';
import { defineConfig } from 'cypress';

const ENV = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/item/form/link/LinkForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const LinkForm = ({
item={{
type: ItemType.LINK,
settings: {},
extra: { [ItemType.LINK]: { url } },
extra: { [ItemType.LINK]: { url: normalizeURL(url) } },
}}
showIframe
showButton={false}
Expand Down
Loading