mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
chore: set selected phase to null if category change
This commit is contained in:
@@ -147,10 +147,6 @@ export function MasterAktivitasContent() {
|
|||||||
time_type: 'umum',
|
time_type: 'umum',
|
||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setInitialLoading(false);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
// Phase handlers
|
// Phase handlers
|
||||||
const handleAddPhase = () => {
|
const handleAddPhase = () => {
|
||||||
if (!selectedCategory) {
|
if (!selectedCategory) {
|
||||||
@@ -423,6 +419,14 @@ export function MasterAktivitasContent() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setInitialLoading(false);
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setSelectedPhase(null);
|
||||||
|
}, [selectedCategory]);
|
||||||
|
|
||||||
if (initialLoading) {
|
if (initialLoading) {
|
||||||
return (
|
return (
|
||||||
<div className='min-h-screen'>
|
<div className='min-h-screen'>
|
||||||
|
|||||||
Reference in New Issue
Block a user