Merge branch 'db' of github.com:logspace-ai/langflow into db
This commit is contained in:
commit
69944b6e46
2 changed files with 3 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ export default function BuildTrigger({
|
||||||
if(!allNodesValid) {
|
if(!allNodesValid) {
|
||||||
setErrorData({
|
setErrorData({
|
||||||
title: "Oops! Looks like you missed something",
|
title: "Oops! Looks like you missed something",
|
||||||
list: ["Check nodes and retry. Hover over 🔴 node for status."],
|
list: ["Check components and retry. Hover over component status icon 🔴 to inspect."],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ export default function Chat({ flow }: ChatType) {
|
||||||
const handleKeyDown = (event: KeyboardEvent) => {
|
const handleKeyDown = (event: KeyboardEvent) => {
|
||||||
if (
|
if (
|
||||||
(event.key === "K" || event.key === "k") &&
|
(event.key === "K" || event.key === "k") &&
|
||||||
(event.metaKey || event.ctrlKey)
|
(event.metaKey || event.ctrlKey) && isBuilt
|
||||||
) {
|
) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
setOpen((oldState) => !oldState);
|
setOpen((oldState) => !oldState);
|
||||||
|
|
@ -26,7 +26,7 @@ export default function Chat({ flow }: ChatType) {
|
||||||
return () => {
|
return () => {
|
||||||
document.removeEventListener("keydown", handleKeyDown);
|
document.removeEventListener("keydown", handleKeyDown);
|
||||||
};
|
};
|
||||||
}, []);
|
}, [isBuilt]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Define an async function within the useEffect hook
|
// Define an async function within the useEffect hook
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue