Set tab id as null when entering store
This commit is contained in:
parent
82b84dd7d5
commit
e3797bae8d
1 changed files with 7 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ import {
|
||||||
} from "../../components/ui/select";
|
} from "../../components/ui/select";
|
||||||
import { alertContext } from "../../contexts/alertContext";
|
import { alertContext } from "../../contexts/alertContext";
|
||||||
import { AuthContext } from "../../contexts/authContext";
|
import { AuthContext } from "../../contexts/authContext";
|
||||||
|
import { FlowsContext } from "../../contexts/flowsContext";
|
||||||
import { StoreContext } from "../../contexts/storeContext";
|
import { StoreContext } from "../../contexts/storeContext";
|
||||||
import { getStoreComponents, getStoreTags } from "../../controllers/API";
|
import { getStoreComponents, getStoreTags } from "../../controllers/API";
|
||||||
import StoreApiKeyModal from "../../modals/StoreApiKeyModal";
|
import StoreApiKeyModal from "../../modals/StoreApiKeyModal";
|
||||||
|
|
@ -30,6 +31,7 @@ export default function StorePage(): JSX.Element {
|
||||||
useContext(StoreContext);
|
useContext(StoreContext);
|
||||||
const { apiKey } = useContext(AuthContext);
|
const { apiKey } = useContext(AuthContext);
|
||||||
const { setErrorData } = useContext(alertContext);
|
const { setErrorData } = useContext(alertContext);
|
||||||
|
const { setTabId } = useContext(FlowsContext);
|
||||||
const [loading, setLoading] = useState(true);
|
const [loading, setLoading] = useState(true);
|
||||||
const [loadingTags, setLoadingTags] = useState(true);
|
const [loadingTags, setLoadingTags] = useState(true);
|
||||||
const [filteredCategories, setFilterCategories] = useState<any[]>([]);
|
const [filteredCategories, setFilterCategories] = useState<any[]>([]);
|
||||||
|
|
@ -145,6 +147,11 @@ export default function StorePage(): JSX.Element {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set a null id
|
||||||
|
useEffect(() => {
|
||||||
|
setTabId("");
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageLayout
|
<PageLayout
|
||||||
title="Langflow Store"
|
title="Langflow Store"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue