From ba7c4ce9d70e8d7822ea80cbb8e77548e1af3ad2 Mon Sep 17 00:00:00 2001 From: Harsh G <89582365+HarshGID100@users.noreply.github.com> Date: Fri, 27 Jun 2025 16:31:50 +0530 Subject: [PATCH] chore: clean stale code --- src/context/browserSteps.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/context/browserSteps.tsx b/src/context/browserSteps.tsx index 6d8b8f07..5c63b7a3 100644 --- a/src/context/browserSteps.tsx +++ b/src/context/browserSteps.tsx @@ -6,14 +6,14 @@ export interface TextStep { label: string; data: string; selectorObj: SelectorObject; - actionId?: string; // Add actionId to track which action created this step + actionId?: string; } interface ScreenshotStep { id: number; type: 'screenshot'; fullPage: boolean; - actionId?: string; // Add actionId to track which action created this step + actionId?: string; } export interface ListStep { @@ -26,7 +26,7 @@ export interface ListStep { selector: string; }; limit?: number; - actionId?: string; // Add actionId to track which action created this step + actionId?: string; } export type BrowserStep = TextStep | ScreenshotStep | ListStep; @@ -50,8 +50,7 @@ interface BrowserStepsContextType { updateListStepLimit: (listId: number, limit: number) => void; updateListStepData: (listId: number, extractedData: any[]) => void; removeListTextField: (listId: number, fieldKey: string) => void; - deleteStepsByActionId: (actionId: string) => void; // New function to delete steps by actionId -} + deleteStepsByActionId: (actionId: string) => void; const BrowserStepsContext = createContext(undefined); @@ -220,7 +219,7 @@ export const BrowserStepsProvider: React.FC<{ children: React.ReactNode }> = ({ updateListStepLimit, updateListStepData, removeListTextField, - deleteStepsByActionId, // Export the new function + deleteStepsByActionId, }}> {children} @@ -233,4 +232,4 @@ export const useBrowserSteps = () => { throw new Error('useBrowserSteps must be used within a BrowserStepsProvider'); } return context; -}; \ No newline at end of file +};