Compare commits

..

No commits in common. "55d39e02d26623648ee5b0a23a0142f04e285924" and "d5c1273e1840b3103631a52ce0980ec7ddda3e9e" have entirely different histories.

View File

@ -41,7 +41,6 @@ export function CategorieSelect({catId, setCatId, menuActions}) {
const setLoading = useLoadingSwitcher() const setLoading = useLoadingSwitcher()
const {data: cats, setData: setCats} = useRequestWS('getAllCategory', {}, setLoading); const {data: cats, setData: setCats} = useRequestWS('getAllCategory', {}, setLoading);
const {dispatch} = useWS(); const {dispatch} = useWS();
const publicAffDispatch = usePubAffDispatch();
const {connected, setText} = useOBS(); const {connected, setText} = useOBS();
const {t} = useTranslation("cm"); const {t} = useTranslation("cm");
@ -71,8 +70,6 @@ export function CategorieSelect({catId, setCatId, menuActions}) {
useEffect(() => { useEffect(() => {
setText("poule", cat ? cat.name : ""); setText("poule", cat ? cat.name : "");
if (!cat)
publicAffDispatch({type: 'SET_DATA', payload: {c1: undefined, c2: undefined, next: []}});
}, [cat, connected]); }, [cat, connected]);
return <> return <>