We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
name
1 parent 7b6f1e5 commit f451db6Copy full SHA for f451db6
src/pages/InstructionsPage/InstructionsPage.tsx
@@ -99,7 +99,14 @@ function InstructionsPage() {
99
}, [anchorInstruction])
100
101
const toggleColumn = (key: InstructionColumnKey) => {
102
- setSearchColumns(prev => (prev.includes(key) ? prev.filter(k => k !== key) : [...prev, key]))
+ setSearchColumns(prev => {
103
+ if (prev.includes(key)) {
104
+ const res = prev.filter(k => k !== key)
105
+ return res.length === 0 ? ["name"] : res
106
+ } else {
107
+ return [...prev, key]
108
+ }
109
+ })
110
}
111
112
const resetAnchor = () => {
0 commit comments