diff --git a/lightrag/kg/postgres_impl.py b/lightrag/kg/postgres_impl.py index dab0d652..139b72b9 100644 --- a/lightrag/kg/postgres_impl.py +++ b/lightrag/kg/postgres_impl.py @@ -1103,7 +1103,8 @@ class PGGraphStorage(BaseGraphStorage): try: d[k] = ( json.loads(v) - if isinstance(v, str) and (v.startswith("{") or v.startswith("[")) + if isinstance(v, str) + and (v.startswith("{") or v.startswith("[")) else v ) except json.JSONDecodeError: diff --git a/lightrag_webui/src/components/status/StatusDialog.tsx b/lightrag_webui/src/components/status/StatusDialog.tsx index 1f2a8d6e..48eaa4f7 100644 --- a/lightrag_webui/src/components/status/StatusDialog.tsx +++ b/lightrag_webui/src/components/status/StatusDialog.tsx @@ -16,7 +16,7 @@ interface StatusDialogProps { const StatusDialog = ({ open, onOpenChange, status }: StatusDialogProps) => { const { t } = useTranslation() - + return ( diff --git a/lightrag_webui/src/components/status/StatusIndicator.tsx b/lightrag_webui/src/components/status/StatusIndicator.tsx index 5e7d8893..5a9fc751 100644 --- a/lightrag_webui/src/components/status/StatusIndicator.tsx +++ b/lightrag_webui/src/components/status/StatusIndicator.tsx @@ -21,7 +21,7 @@ const StatusIndicator = () => { return (
-
setDialogOpen(true)} > @@ -39,11 +39,11 @@ const StatusIndicator = () => { {health ? t('graphPanel.statusIndicator.connected') : t('graphPanel.statusIndicator.disconnected')}
- -
)