@@ -23,11 +23,6 @@ const headers = [
23
23
value : "endpointComp" ,
24
24
title : "Api Endpoint" ,
25
25
} ,
26
- {
27
- text : "Subcategory" ,
28
- value : "subCategory" ,
29
- title : "Subcategory" ,
30
- } ,
31
26
{
32
27
text : "Threat Actor" ,
33
28
value : "actorComp" ,
@@ -85,7 +80,6 @@ function SusDataTable({ currDateRange, rowClicked }) {
85
80
const collectionsMap = PersistStore ( ( state ) => state . collectionsMap ) ;
86
81
const threatFiltersMap = PersistStore ( ( state ) => state . threatFiltersMap ) ;
87
82
88
- const [ subCategoryChoices , setSubCategoryChoices ] = useState ( [ ] ) ;
89
83
90
84
async function fetchData (
91
85
sortKey ,
@@ -100,8 +94,7 @@ function SusDataTable({ currDateRange, rowClicked }) {
100
94
let sourceIpsFilter = [ ] ,
101
95
apiCollectionIdsFilter = [ ] ,
102
96
matchingUrlFilter = [ ] ,
103
- typeFilter = [ ] ,
104
- subCategoryFilter = [ ] ;
97
+ typeFilter = [ ] ;
105
98
if ( filters ?. actor ) {
106
99
sourceIpsFilter = filters ?. actor ;
107
100
}
@@ -114,9 +107,6 @@ function SusDataTable({ currDateRange, rowClicked }) {
114
107
if ( filters ?. type ) {
115
108
typeFilter = filters ?. type
116
109
}
117
- if ( filters ?. subCategory ) {
118
- subCategoryFilter = filters ?. subCategory
119
- }
120
110
const sort = { [ sortKey ] : sortOrder } ;
121
111
const res = await api . fetchSuspectSampleData (
122
112
skip ,
@@ -126,25 +116,21 @@ function SusDataTable({ currDateRange, rowClicked }) {
126
116
typeFilter ,
127
117
sort ,
128
118
startTimestamp ,
129
- endTimestamp ,
130
- subCategoryFilter
119
+ endTimestamp
131
120
) ;
132
- const distinctSubCategories = Array . from ( new Set ( res ?. maliciousEvents . map ( ( x ) => x ?. subCategory ) ) ) ;
133
- setSubCategoryChoices ( distinctSubCategories ) ;
121
+ // setSubCategoryChoices(distinctSubCategories);
134
122
let total = res . total ;
135
123
let ret = res ?. maliciousEvents . map ( ( x ) => {
136
124
const severity = threatFiltersMap [ x ?. filterId ] ?. severity || "HIGH"
137
125
return {
138
126
...x ,
139
127
id : x . id ,
140
- subCategory : x ?. subCategory ,
141
128
actorComp : x ?. actor ,
142
129
endpointComp : (
143
130
< GetPrettifyEndpoint maxWidth = "300px" method = { x . method } url = { x . url } isNew = { false } />
144
131
) ,
145
132
apiCollectionName : collectionsMap [ x . apiCollectionId ] || "-" ,
146
- discoveredTs : dayjs ( x . timestamp ) . format ( "DD-MM-YYYY HH:mm:ss" ) ,
147
- subCategoryComp : x ?. subCategory || "-" ,
133
+ discoveredTs : dayjs ( x . timestamp * 1000 ) . format ( "DD-MM-YYYY HH:mm:ss" ) ,
148
134
sourceIPComponent : x ?. ip || "-" ,
149
135
type : x ?. type || "-" ,
150
136
severityComp : ( < div className = { `badge-wrapper-${ severity } ` } >
@@ -168,9 +154,6 @@ function SusDataTable({ currDateRange, rowClicked }) {
168
154
return { label : x , value : x } ;
169
155
} ) ;
170
156
171
- let subCategoryChoices = res ?. subCategory . map ( ( x ) => {
172
- return { label : x , value : x } ;
173
- } ) ;
174
157
175
158
filters = [
176
159
{
@@ -185,12 +168,6 @@ function SusDataTable({ currDateRange, rowClicked }) {
185
168
title : "URL" ,
186
169
choices : urlChoices ,
187
170
} ,
188
- {
189
- key : "subCategory" ,
190
- label : "Subcategory" ,
191
- title : "Subcategory" ,
192
- choices : subCategoryChoices ,
193
- } ,
194
171
{
195
172
key : 'type' ,
196
173
label : "Type" ,
0 commit comments