Skip to content

Commit

Permalink
API tab per defaut when viewing runs with a wIdTarget (#5869)
Browse files Browse the repository at this point in the history
* API tab per defaut when viewing runs with a wIdTarget

* lint

* lint
  • Loading branch information
PopDaph authored Jun 26, 2024
1 parent b0356a9 commit bdf6b42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/pages/w/[wId]/a/[aId]/runs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export default function RunsView({
wIdTarget,
gaTrackingId,
}: InferGetServerSidePropsType<typeof getServerSideProps>) {
const [runType, setRunType] = useState("local" as RunRunType);
const [runType, setRunType] = useState(
(wIdTarget ? "deploy" : "local") as RunRunType
);
const [limit] = useState(10);
const [offset, setOffset] = useState(0);

Expand Down

0 comments on commit bdf6b42

Please sign in to comment.