diff --git a/frontend/src/pages/projects/notebook/utils.ts b/frontend/src/pages/projects/notebook/utils.ts index 4619b959f7..0f08aa017f 100644 --- a/frontend/src/pages/projects/notebook/utils.ts +++ b/frontend/src/pages/projects/notebook/utils.ts @@ -124,7 +124,11 @@ export const useNotebookStatus = ( const events = useWatchNotebookEvents(notebook.metadata.namespace, podUid, spawnInProgress); const annotationTime = notebook?.metadata.annotations?.['notebooks.kubeflow.org/last-activity']; - const lastActivity = annotationTime ? new Date(annotationTime) : null; + const lastActivity = annotationTime + ? new Date(annotationTime) + : spawnInProgress + ? new Date(0) + : null; if (!lastActivity) { // Notebook not started, we don't have a filter time, ignore