mid 변경
This commit is contained in:
@@ -15,7 +15,15 @@ export const FilterSelectMid = ({
|
||||
const midOptionsWithoutGids = useStore.getState().UserStore.selectOptionsMidsWithoutGids;
|
||||
const userMid = useStore.getState().UserStore.mid;
|
||||
|
||||
const [filterMid, setFilterMid] = useState<string>(userMid);
|
||||
let options = midOptions;
|
||||
if(showType === 'MID'){
|
||||
options = midOptionsWithoutGids;
|
||||
}
|
||||
let midItem = options.filter((value, index) => {
|
||||
return value.value === userMid;
|
||||
});
|
||||
|
||||
const [filterMid, setFilterMid] = useState<string>((midItem.length > 0)? userMid: '');
|
||||
|
||||
const getSelectMidOptions = () => {
|
||||
let rs = [];
|
||||
|
||||
Reference in New Issue
Block a user