Skip to content

Commit d54cd86

Browse files
committed
Fix JSON fetch path for GitGub Pages
1 parent 56ae22c commit d54cd86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/PropertyDetails.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const PropertyDetails = () => {
99
const [property, setProperty] = useState(null);
1010

1111
useEffect(() => {
12-
fetch("/properties(1).json")
12+
fetch("./properties(1).json")
1313
.then(res => res.json())
1414
.then(data => {
1515
const found = data.properties.find(p => p.id === id);

0 commit comments

Comments
 (0)