Skip to content

Commit 549b807

Browse files
committed
Frontend: Remote CSV - reset pages state to [] when changing between remote CSV and manual URL input mode
1 parent 8d1dae6 commit 549b807

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/frontend/src/routes/BuildAudit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export const BuildAudit = () => {
202202

203203
<Card variant="light" className={styles["pages-input-card"]}>
204204
<h2><FaListUl className="icon-small" /> Add URLs to Your Audit</h2>
205-
<Tabs.Root className="TabsRoot" defaultValue="url" onValueChange={() => { setRemoteCsvUrl("") }}>
205+
<Tabs.Root className="TabsRoot" defaultValue="url" onValueChange={() => { setRemoteCsvUrl(""); setPages([]); }}>
206206
<Tabs.List className={styles["pages-input-list"]} aria-label="Add URLs to Scan">
207207
<Tabs.Trigger value="url" asChild>
208208
<StyledButton

0 commit comments

Comments
 (0)