mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +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',
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
setInitialLoading(false);
|
||||
}, []);
|
||||
|
||||
// Phase handlers
|
||||
const handleAddPhase = () => {
|
||||
if (!selectedCategory) {
|
||||
@@ -423,6 +419,14 @@ export function MasterAktivitasContent() {
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
setInitialLoading(false);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
setSelectedPhase(null);
|
||||
}, [selectedCategory]);
|
||||
|
||||
if (initialLoading) {
|
||||
return (
|
||||
<div className='min-h-screen'>
|
||||
|
||||
Reference in New Issue
Block a user