@@ -6,14 +6,14 @@ export interface TextStep {
6
6
label : string ;
7
7
data : string ;
8
8
selectorObj : SelectorObject ;
9
- actionId ?: string ; // Add actionId to track which action created this step
9
+ actionId ?: string ;
10
10
}
11
11
12
12
interface ScreenshotStep {
13
13
id : number ;
14
14
type : 'screenshot' ;
15
15
fullPage : boolean ;
16
- actionId ?: string ; // Add actionId to track which action created this step
16
+ actionId ?: string ;
17
17
}
18
18
19
19
export interface ListStep {
@@ -26,7 +26,7 @@ export interface ListStep {
26
26
selector : string ;
27
27
} ;
28
28
limit ?: number ;
29
- actionId ?: string ; // Add actionId to track which action created this step
29
+ actionId ?: string ;
30
30
}
31
31
32
32
export type BrowserStep = TextStep | ScreenshotStep | ListStep ;
@@ -50,8 +50,7 @@ interface BrowserStepsContextType {
50
50
updateListStepLimit : ( listId : number , limit : number ) => void ;
51
51
updateListStepData : ( listId : number , extractedData : any [ ] ) => void ;
52
52
removeListTextField : ( listId : number , fieldKey : string ) => void ;
53
- deleteStepsByActionId : ( actionId : string ) => void ; // New function to delete steps by actionId
54
- }
53
+ deleteStepsByActionId : ( actionId : string ) => void ;
55
54
56
55
const BrowserStepsContext = createContext < BrowserStepsContextType | undefined > ( undefined ) ;
57
56
@@ -220,7 +219,7 @@ export const BrowserStepsProvider: React.FC<{ children: React.ReactNode }> = ({
220
219
updateListStepLimit,
221
220
updateListStepData,
222
221
removeListTextField,
223
- deleteStepsByActionId, // Export the new function
222
+ deleteStepsByActionId,
224
223
} } >
225
224
{ children }
226
225
</ BrowserStepsContext . Provider >
@@ -233,4 +232,4 @@ export const useBrowserSteps = () => {
233
232
throw new Error ( 'useBrowserSteps must be used within a BrowserStepsProvider' ) ;
234
233
}
235
234
return context ;
236
- } ;
235
+ } ;
0 commit comments