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:
parent
167a442ffe
commit
66238c7ccf
@ -618,7 +618,7 @@ const AddOfferModal = () => {
|
||||
/>;
|
||||
|
||||
const iframe = <PortalFrame
|
||||
href={href}
|
||||
href={href || ''}
|
||||
/>;
|
||||
return <PreviewModalContent
|
||||
afterClose={() => {
|
||||
|
@ -257,7 +257,7 @@ const EditOfferModal: React.FC<{id: string}> = ({id}) => {
|
||||
}, [formState, siteData]);
|
||||
|
||||
const iframe = <PortalFrame
|
||||
href={href}
|
||||
href={href || ''}
|
||||
/>;
|
||||
|
||||
return offerById ? <PreviewModalContent
|
||||
|
Loading…
Reference in New Issue
Block a user