refactor: minor cleanup

This commit is contained in:
David Ralph
2023-03-14 12:34:08 +00:00
parent f5d9ad11a5
commit cfd096ecc3
25 changed files with 73 additions and 65 deletions

View File

@@ -9,7 +9,9 @@ import Chip from '@mui/material/Chip';
function ChipSelect({ label, options, name }) {
let start = (localStorage.getItem('apiCategories') || '').split(',');
if (start[0] === '') start = [];
if (start[0] === '') {
start = [];
}
const [optionsSelected, setoptionsSelected] = useState(start);