mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
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
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue