+
{
return (
<>
- {paragraph.children.slice(1)}
+ {paragraph.children.slice(1)}
>
)
}
- return {paragraph.children}
+ return {paragraph.children}
}
const Img = ({ src }: any) => {
diff --git a/web/app/components/develop/secret-key/secret-key-modal.tsx b/web/app/components/develop/secret-key/secret-key-modal.tsx
index fd28a67e7e..dbb5cc37c7 100644
--- a/web/app/components/develop/secret-key/secret-key-modal.tsx
+++ b/web/app/components/develop/secret-key/secret-key-modal.tsx
@@ -41,7 +41,7 @@ const SecretKeyModal = ({
}: ISecretKeyModalProps) => {
const { t } = useTranslation()
const { formatTime } = useTimestamp()
- const { currentWorkspace, isCurrentWorkspaceManager } = useAppContext()
+ const { currentWorkspace, isCurrentWorkspaceManager, isCurrentWorkspaceEditor } = useAppContext()
const [showConfirmDelete, setShowConfirmDelete] = useState(false)
const [isVisible, setVisible] = useState(false)
const [newKey, setNewKey] = useState(undefined)
@@ -142,7 +142,7 @@ const SecretKeyModal = ({
)
}
-
@@ -75,7 +75,7 @@ const MetaData: FC
= ({
)}
{status !== 'running' && (
- {`${time?.toFixed(3)}s`}
+ {time ? `${time.toFixed(3)}s` : '-'}
)}
diff --git a/web/app/components/workflow/run/status.tsx b/web/app/components/workflow/run/status.tsx
index 6299302209..62167c32e0 100644
--- a/web/app/components/workflow/run/status.tsx
+++ b/web/app/components/workflow/run/status.tsx
@@ -67,7 +67,7 @@ const StatusPanel: FC