mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
fix: open filter modal when component is mounted
This commit is contained in:
@@ -791,6 +791,10 @@ const HppPerKandangTab = ({ tabId }: HppPerKandangTabProps) => {
|
||||
[data, perWeightRangeSummary]
|
||||
);
|
||||
|
||||
useEffectHook(() => {
|
||||
filterModal.openModal();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
{TabActionsElement}
|
||||
|
||||
+4
@@ -631,6 +631,10 @@ const ProductionResultContent = ({ tabId }: ProductionResultTabProps) => {
|
||||
// Render the TabActions component
|
||||
const TabActionsElement = useMemo(() => <TabActions />, [TabActions]);
|
||||
|
||||
useEffect(() => {
|
||||
filterModal.openModal();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
{TabActionsElement}
|
||||
|
||||
Reference in New Issue
Block a user