Fix linting
This commit is contained in:
@@ -1103,7 +1103,8 @@ class PGGraphStorage(BaseGraphStorage):
|
|||||||
try:
|
try:
|
||||||
d[k] = (
|
d[k] = (
|
||||||
json.loads(v)
|
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
|
else v
|
||||||
)
|
)
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
|
@@ -16,7 +16,7 @@ interface StatusDialogProps {
|
|||||||
|
|
||||||
const StatusDialog = ({ open, onOpenChange, status }: StatusDialogProps) => {
|
const StatusDialog = ({ open, onOpenChange, status }: StatusDialogProps) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||||
<DialogContent className="sm:max-w-[500px]">
|
<DialogContent className="sm:max-w-[500px]">
|
||||||
|
@@ -21,7 +21,7 @@ const StatusIndicator = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed right-4 bottom-4 flex items-center gap-2 opacity-80 select-none">
|
<div className="fixed right-4 bottom-4 flex items-center gap-2 opacity-80 select-none">
|
||||||
<div
|
<div
|
||||||
className="flex cursor-pointer items-center gap-2"
|
className="flex cursor-pointer items-center gap-2"
|
||||||
onClick={() => setDialogOpen(true)}
|
onClick={() => setDialogOpen(true)}
|
||||||
>
|
>
|
||||||
@@ -39,11 +39,11 @@ const StatusIndicator = () => {
|
|||||||
{health ? t('graphPanel.statusIndicator.connected') : t('graphPanel.statusIndicator.disconnected')}
|
{health ? t('graphPanel.statusIndicator.connected') : t('graphPanel.statusIndicator.disconnected')}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<StatusDialog
|
<StatusDialog
|
||||||
open={dialogOpen}
|
open={dialogOpen}
|
||||||
onOpenChange={setDialogOpen}
|
onOpenChange={setDialogOpen}
|
||||||
status={status}
|
status={status}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user