Skip to content

Commit

Permalink
add env var check
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhollid committed Mar 2, 2025
1 parent 16e51e5 commit 89d2226
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const MonitorTable = ({ isLoading, monitors }) => {
const theme = useTheme();
const navigate = useNavigate();
const { determineState } = useMonitorUtils();

const headers = [
{
id: "name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 89d2226

Please sign in to comment.