Change property options API endpoint to deployed URL
This commit is contained in:
parent
6de7feefc1
commit
b6e0235f88
@ -55,7 +55,7 @@ const OrdersNew = () => {
|
|||||||
|
|
||||||
// Fetch property options from your backend API
|
// Fetch property options from your backend API
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch('/api/properties') // <-- update as appropriate
|
fetch('https://vres.flatlogic.app/api/properties') // <-- uses deployed api
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
const options = data.map(property => ({
|
const options = data.map(property => ({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user