mirror of
https://github.com/mue/mue.git
synced 2026-07-27 10:41:08 +02:00
fix: es_419 locale, run prettier, remove unused line
This commit is contained in:
@@ -9,22 +9,19 @@ import Select from '@mui/material/Select';
|
||||
import Chip from '@mui/material/Chip';
|
||||
|
||||
function ChipSelect({ label, options, name }) {
|
||||
let start = (localStorage.getItem('apiCategories') || "").split(',');
|
||||
if (start[0] === "") start = [];
|
||||
let start = (localStorage.getItem('apiCategories') || '').split(',');
|
||||
if (start[0] === '') start = [];
|
||||
|
||||
const [optionsSelected, setoptionsSelected] = useState(start);
|
||||
|
||||
|
||||
const handleChange = (event) => {
|
||||
const {
|
||||
target: { value },
|
||||
} = event;
|
||||
setoptionsSelected(
|
||||
typeof value === 'string' ? value.split(',') : value,
|
||||
);
|
||||
localStorage.setItem('apiCategories', value)
|
||||
setoptionsSelected(typeof value === 'string' ? value.split(',') : value);
|
||||
localStorage.setItem('apiCategories', value);
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<div>
|
||||
<FormControl>
|
||||
|
||||
Reference in New Issue
Block a user