diff --git a/apps/OpenSign/src/components/pdf/PlaceholderBorder.js b/apps/OpenSign/src/components/pdf/PlaceholderBorder.js index 882578137..aa1ac500b 100644 --- a/apps/OpenSign/src/components/pdf/PlaceholderBorder.js +++ b/apps/OpenSign/src/components/pdf/PlaceholderBorder.js @@ -51,8 +51,8 @@ function PlaceholderBorder(props) { style={{ borderColor: themeColor, borderStyle: "dashed", - minWidth: handleMinWidth() || "", - minHeight: handleMinHeight() || "", + minWidth: handleMinWidth() || 0, + minHeight: handleMinHeight() || 0, borderWidth: "0.2px", overflow: "hidden" }} diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.js index 5c60c37e1..978217590 100644 --- a/apps/OpenSign/src/constant/Utils.js +++ b/apps/OpenSign/src/constant/Utils.js @@ -1998,6 +1998,8 @@ export const handleToPrint = async (event, pdfUrl, setIsDownloading) => { setIsDownloading("pdf"); try { // const url = await Parse.Cloud.run("getsignedurl", { url: pdfUrl }); + //`localStorage.getItem("baseUrl")` is also use in public-profile flow for public-sign + //if we give this `appInfo.baseUrl` as a base url then in public-profile it will create base url of it's window.location.origin ex- opensign.me which is not base url const axiosRes = await axios.post( `${localStorage.getItem("baseUrl")}/functions/getsignedurl`, { url: pdfUrl },