Skip to content

Commit

Permalink
Merge pull request #65 from sitegeist/fixDisallowedHooksCall
Browse files Browse the repository at this point in the history
FIX: disallowed hooks call
  • Loading branch information
Alvadda authored Jan 21, 2025
2 parents 7be0f3e + e0043d5 commit d27fbba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Neos.Ui/core/src/application/LinkTypes/Web/Web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const Web = makeLinkType<WebLinkModel>('Sitegeist.Archaeopteryx:Web', ({c
const [protocol, setProtocol] = useState<string>("");

const i18n = useI18n();
const form = useForm();

return (
<div>
Expand All @@ -86,7 +87,7 @@ export const Web = makeLinkType<WebLinkModel>('Sitegeist.Archaeopteryx:Web', ({c
}

if(value === undefined){
useForm().change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol);
form.change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol);
}
return value;
}}
Expand Down Expand Up @@ -128,7 +129,7 @@ export const Web = makeLinkType<WebLinkModel>('Sitegeist.Archaeopteryx:Web', ({c
if (matches) {
const [, protocol, urlWithoutProtocol] = matches;

useForm().change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol);
form.change('linkTypeProps.Sitegeist_Archaeopteryx:Web.protocol', protocol);
return urlWithoutProtocol;
}
return value;
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Plugin.js

Large diffs are not rendered by default.

0 comments on commit d27fbba

Please sign in to comment.