add env var check
This commit is contained in:
1 parent
16e51e5707
commit
89d2226fb8
2 files changed
+5
-2
No files matched your search
@@ -20,7 +20,6 @@ const MonitorTable = ({ isLoading, monitors }) => {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { determineState } = useMonitorUtils();
|
const { determineState } = useMonitorUtils();
|
||||||
|
|
||||||
const headers = [
|
const headers = [
|
||||||
{
|
{
|
||||||
id: "name",
|
id: "name",
|
||||||
|
|||||||
@@ -24,7 +24,11 @@ const useSubscribeToMonitors = (page, rowsPerPage) => {
|
|||||||
const cleanup = networkService.subscribeToDistributedUptimeMonitors({
|
const cleanup = networkService.subscribeToDistributedUptimeMonitors({
|
||||||
teamId: user.teamId,
|
teamId: user.teamId,
|
||||||
limit: 25,
|
limit: 25,
|
||||||
types: ["distributed_http"],
|
types: [
|
||||||
|
typeof import.meta.env.VITE_DEPIN_TESTING === "undefined"
|
||||||
|
? "distributed_http"
|
||||||
|
: "distributed_test",
|
||||||
|
],
|
||||||
page,
|
page,
|
||||||
rowsPerPage,
|
rowsPerPage,
|
||||||
filter: null,
|
filter: null,
|
||||||
|
|||||||
Reference in new issue
Block a user