Skip to content

Commit

Permalink
Fix historical data API call on custom development example.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed Nov 29, 2024
1 parent b037b0a commit 2195d0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function HistoricalDataPlot({

// Fetch historical data for each point
const historicalDataPromises = selectedPoints.map((point) =>
getHistoricalData(point, timeBegin)
getHistoricalData(point, timeBegin, null)
)

const historicalDataResults = await Promise.all(historicalDataPromises)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export async function readRealTimeData (
}

try {
const response = await fetch('http://127.0.0.1:8080/Invoke/', {
const response = await fetch('/Invoke/', {
method: 'POST',
body: JSON.stringify(req),
headers: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export async function readRealTimeData (
}

try {
const response = await fetch('http://127.0.0.1:8080/Invoke/', {
const response = await fetch('/Invoke/', {
method: 'POST',
body: JSON.stringify(req),
headers: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export async function readRealTimeData (
}

try {
const response = await fetch('http://127.0.0.1:8080/Invoke/', {
const response = await fetch('/Invoke/', {
method: 'POST',
body: JSON.stringify(req),
headers: {
Expand Down

0 comments on commit 2195d0f

Please sign in to comment.