diff --git a/src/backend/langflow/lcserve.py b/src/backend/langflow/lcserve.py index affc0ff79..87f69e014 100644 --- a/src/backend/langflow/lcserve.py +++ b/src/backend/langflow/lcserve.py @@ -3,9 +3,9 @@ import os # Use the JCLOUD_WORKSPACE for db URL if it's provided by JCloud. -if 'JCLOUD_WORKSPACE' in os.environ: +if "JCLOUD_WORKSPACE" in os.environ: os.environ[ - 'LANGFLOW_DATABASE_URL' + "LANGFLOW_DATABASE_URL" ] = f"sqlite:///{os.environ['JCLOUD_WORKSPACE']}/langflow.db" from langflow.main import setup_app diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 4f2e390c6..7335da19d 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -118,7 +118,7 @@ export default function App() { const removeAlert = (id: string) => { setAlertsList((prevAlertsList) => - prevAlertsList.filter((alert) => alert.id !== id), + prevAlertsList.filter((alert) => alert.id !== id) ); }; @@ -138,10 +138,7 @@ export default function App() {
-
+
{alertsList.map((alert) => (
{alert.type === "error" ? ( diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 3430125c0..313be210c 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -169,9 +169,7 @@ export default function GenericNode({
-
- {data.node.description} -
+
{data.node.description}
<> {Object.keys(data.node.template) diff --git a/src/frontend/src/alerts/error/index.tsx b/src/frontend/src/alerts/error/index.tsx index 93f30484b..d71980b7e 100644 --- a/src/frontend/src/alerts/error/index.tsx +++ b/src/frontend/src/alerts/error/index.tsx @@ -43,12 +43,13 @@ export default function ErrorAlert({ >
-
-

- {title} -

+

{title}

{list.length !== 0 ? (
    diff --git a/src/frontend/src/alerts/success/index.tsx b/src/frontend/src/alerts/success/index.tsx index e943feb8c..95eaa1ba4 100644 --- a/src/frontend/src/alerts/success/index.tsx +++ b/src/frontend/src/alerts/success/index.tsx @@ -38,15 +38,10 @@ export default function SuccessAlert({ >
    -
    -

    - {title} -

    +

    {title}

diff --git a/src/frontend/src/components/AccordionComponent/index.tsx b/src/frontend/src/components/AccordionComponent/index.tsx index 8990da245..f03a2ad5f 100644 --- a/src/frontend/src/components/AccordionComponent/index.tsx +++ b/src/frontend/src/components/AccordionComponent/index.tsx @@ -18,7 +18,7 @@ export default function AccordionComponent({ open = [], }: AccordionComponentType) { const [value, setValue] = useState( - open.length == 0 ? "" : getOpenAccordion(), + open.length == 0 ? "" : getOpenAccordion() ); function getOpenAccordion() { diff --git a/src/frontend/src/components/EditFlowSettingsComponent/index.tsx b/src/frontend/src/components/EditFlowSettingsComponent/index.tsx index 4c1d18b75..b51722ad8 100644 --- a/src/frontend/src/components/EditFlowSettingsComponent/index.tsx +++ b/src/frontend/src/components/EditFlowSettingsComponent/index.tsx @@ -47,9 +47,7 @@ export const EditFlowSettings: React.FC = ({
Name{" "} {isMaxLength && ( - - Character limit reached - + Character limit reached )}