Fixed glitch on my components, testing needed
This commit is contained in:
parent
1fd2931e4c
commit
4911c7196c
1 changed files with 3 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ export default function ComponentsComponent({
|
|||
}: {
|
||||
is_component?: boolean;
|
||||
}) {
|
||||
const { flows, removeFlow, uploadFlow, isLoading } = useContext(FlowsContext);
|
||||
const { flows, removeFlow, uploadFlow, isLoading, tabId } =
|
||||
useContext(FlowsContext);
|
||||
const { setErrorData, setSuccessData } = useContext(alertContext);
|
||||
const [pageSize, setPageSize] = useState(10);
|
||||
const [pageIndex, setPageIndex] = useState(1);
|
||||
|
|
@ -24,6 +25,7 @@ export default function ComponentsComponent({
|
|||
const navigate = useNavigate();
|
||||
|
||||
useEffect(() => {
|
||||
if (isLoading) return;
|
||||
setAllData(
|
||||
flows
|
||||
.filter((f) => f.is_component === is_component)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue