Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
fix build error Import 'Monitor' conflicts with local value (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland authored Apr 1, 2024
1 parent 6cd4d93 commit bf1749d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/sandbox/Monitor.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import ReactEcharts, { EChartsOption } from "echarts-for-react";
import useSWR from "swr";
import Spinning from "@/app/components/spinning";
import { Monitor } from "@/app/api/db/monitor/monitor";
import { Monitor as MonitorData} from "@/app/api/db/monitor/monitor";


function getOptions(monitor: Monitor) {
function getOptions(monitor: MonitorData) {
const options: EChartsOption = {
title: {
text: monitor.name,
Expand Down Expand Up @@ -82,7 +82,7 @@ function getOptions(monitor: Monitor) {
return options
}

async function getMonitorData(task_arn?: string): Promise<Monitor[]> {
async function getMonitorData(task_arn?: string): Promise<MonitorData[]> {

let query = task_arn ? `?task_arn=${encodeURIComponent(task_arn)}` : ''
let response = await fetch(`/api/db/monitor${query}`, {
Expand Down

0 comments on commit bf1749d

Please sign in to comment.