Skip to content

Commit

Permalink
fix(portal): remove unnecesary fn
Browse files Browse the repository at this point in the history
  • Loading branch information
KsiBart committed Nov 15, 2024
1 parent df5e1ac commit 7fa8cd5
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ActivityDiagrams = ({ envs }: Props) => {
});

const handleFormValues = useCallback(
(values: DiagramProps) => {
(_: unknown, values: DiagramProps) => {
const { requestTime = [] } = values ?? {};
if(requestTime?.[0]) {
setSelectedRecentDate(undefined);
Expand All @@ -72,14 +72,6 @@ const ActivityDiagrams = ({ envs }: Props) => {
[setParams, params]
);

const handleFormValuesChange = useCallback(
(t: any, values: any) => {
if (t.path) return;
handleFormValues(values);
},
[setParams]
);

const envOptions = useMemo(() => {
return (
envs?.map((env) => ({
Expand All @@ -103,7 +95,7 @@ const ActivityDiagrams = ({ envs }: Props) => {
form={form}
layout="inline"
colon={false}
onValuesChange={handleFormValuesChange}
onValuesChange={handleFormValues}
>
<Flex
style={{ width: "100%", paddingBottom: "16px" }}
Expand Down

0 comments on commit 7fa8cd5

Please sign in to comment.