Skip to content

Commit

Permalink
Merge pull request #543 from DhairyaMajmudar/prev_exec
Browse files Browse the repository at this point in the history
Fix: Removing type errors
  • Loading branch information
frouioui authored May 20, 2024
2 parents fda5237 + 6c68210 commit 8cf44f2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions website/src/pages/StatusPage/components/PreviousExecutions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,20 @@ import { formatDate } from "../../../utils/Utils";
import { twMerge } from "tailwind-merge";
import DisplayList from "../../../common/DisplayList";

export default function PreviousExecutions(props) {
const { data, title } = props;
interface PreviousExecutionsProps {
data: any;
title: string;
}

export default function PreviousExecutions({
data,
title,
}: PreviousExecutionsProps) {
const [previousExecutions, setPreviousExecutions] = useState([]);

useEffect(() => {
for (const entry of data) {
const newData = {};
const newData: { [key: string]: any } = {};

newData["UUID"] = entry.uuid.slice(0, 8);

Expand Down

0 comments on commit 8cf44f2

Please sign in to comment.