Skip to content

Commit 3b0b603

Browse files
Fixed the sub technique hide/unhide feature
1 parent 275c414 commit 3b0b603

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/TableContent/TechniquesTable.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ const TechniquesTable = ({
152152
localStorage.setItem('techniques', JSON.stringify(dataArray));
153153
}
154154

155+
console.log('selectedTechnique', selectedTechnique)
156+
155157
if (selectedTechnique) {
156158
const storedTechniques = JSON.parse(localStorage.getItem('techniques')) || [];
157159

@@ -1114,7 +1116,9 @@ const TechniquesTable = ({
11141116
{sub_techniques &&
11151117
sub_techniques.map((line, index) => (
11161118
<li
1117-
style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}
1119+
style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center',
1120+
color: hiddenTechniques?.includes(line) ? 'grey' : 'white',
1121+
}}
11181122
tabIndex={0}
11191123
key={index}
11201124
onFocus={() => {

0 commit comments

Comments
 (0)