Added default string to href to Offers Portal iFrame (#19514)

no issue

- potentially fixes a small performance issues to avoid the homepage of
your publication from being loaded should an href from Portal not exist
when loading Offers, that could cause flashing.
This commit is contained in:
Ronald Langeveld 2024-01-18 09:42:46 +00:00 committed by GitHub
parent 167a442ffe
commit 66238c7ccf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -618,7 +618,7 @@ const AddOfferModal = () => {
/>;
const iframe = <PortalFrame
href={href}
href={href || ''}
/>;
return <PreviewModalContent
afterClose={() => {

View File

@ -257,7 +257,7 @@ const EditOfferModal: React.FC<{id: string}> = ({id}) => {
}, [formState, siteData]);
const iframe = <PortalFrame
href={href}
href={href || ''}
/>;
return offerById ? <PreviewModalContent