Fix: Make tab groups (single select) togglable
This commit is contained in:
1 parent
27274aa994
commit
d7e9bae558
1 file changed
+1
-2
@@ -102,8 +102,7 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => {
|
||||
const onSelectTab = (group, value) => {
|
||||
const parsedData = getParsedData()
|
||||
|
||||
Object.assign(parsedData, { [group.key]: value })
|
||||
|
||||
parsedData[group.key] = parsedData[group.key] !== value ? value : null
|
||||
setData(parsedData)
|
||||
}
|
||||
const iconName = shouldShowInfo ? 'chevron-up' : 'chevron-down'
|
||||
|
||||
Reference in new issue
Block a user