Skip to content

Commit

Permalink
Merge pull request #38 from cloudflare/rozenmd/package-json-cleanup
Browse files Browse the repository at this point in the history
chore: clean-up package.jsons
  • Loading branch information
rozenmd authored Jan 20, 2025
2 parents f61128e + 1c53567 commit 5ede12b
Show file tree
Hide file tree
Showing 6 changed files with 5,718 additions and 31,895 deletions.
4 changes: 3 additions & 1 deletion frontend/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ const statsReducer = (state: any, action: any) => {
if (action.update) state.update += action.update;
if (action.delete) state.delete += action.delete;
if (action.insert) state.insert += action.insert;
if (action.log) state.log.push({ ...action.log });
// we want new logs to be at the top of the list
if (action.log) state.log.unshift({ ...action.log });

return state;
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/dash.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { useStats } from "~/components/StatsContext";
import { SQLRequestEvent } from "worker/lib/tools";
import type { SQLRequestEvent } from "worker/lib/tools";

interface Status {
cf:
Expand Down
Loading

0 comments on commit 5ede12b

Please sign in to comment.