fix: remove unwanted states fetching logic to avoid multiple API calls. (#6158)
This commit is contained in:
parent
aa1e192a50
commit
d55ee6d5b8
1 changed files with 1 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
"use client";
|
||||
|
||||
import { ReactNode, useEffect, useRef, useState } from "react";
|
||||
import { ReactNode, useRef, useState } from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { useParams } from "next/navigation";
|
||||
import { usePopper } from "react-popper";
|
||||
|
|
@ -125,11 +125,6 @@ export const StateDropdown: React.FC<Props> = observer((props) => {
|
|||
setQuery,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (projectId) onOpen();
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [projectId]);
|
||||
|
||||
const dropdownOnChange = (val: string) => {
|
||||
onChange(val);
|
||||
handleClose();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue