add env var check

This commit is contained in:
Alex Holliday committed 2025-03-02 12:34:51 -08:00
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 navigate = useNavigate();
const { determineState } = useMonitorUtils();
const headers = [
{
id: "name",
@@ -24,7 +24,11 @@ const useSubscribeToMonitors = (page, rowsPerPage) => {
const cleanup = networkService.subscribeToDistributedUptimeMonitors({
teamId: user.teamId,
limit: 25,
types: ["distributed_http"],
types: [
typeof import.meta.env.VITE_DEPIN_TESTING === "undefined"
? "distributed_http"
: "distributed_test",
],
page,
rowsPerPage,
filter: null,