diff --git a/src/components/Map/MapView.jsx b/src/components/Map/MapView.jsx index 6949bc7..c865d80 100644 --- a/src/components/Map/MapView.jsx +++ b/src/components/Map/MapView.jsx @@ -304,7 +304,7 @@ export default function MapView({ LINK_PREVIEW_PLACEHOLDER ); const [draftMediaUrls, setDraftMediaUrls] = useState([]); - const [useCustomImage, setUseCustomImage] = useState(false); + const [useCustomImage, setUseCustomImage] = useState(contentMode !== "link"); const [postVisibility, setPostVisibility] = useState("public"); const [postGroupId, setPostGroupId] = useState(""); const [postUsers, setPostUsers] = useState(""); @@ -1069,6 +1069,10 @@ export default function MapView({ setModeChosen(false); }; + useEffect(() => { + setUseCustomImage(contentMode !== "link"); + }, [contentMode]); + const handleSearchSubmit = (e) => { e.preventDefault(); };