diff --git a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx index 482a48f6c20..12a300d25ff 100644 --- a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx +++ b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTabCoordinator.tsx @@ -1,6 +1,7 @@ import { useQueryClient } from '@tanstack/react-query' import { useParams } from 'common' import { useContext, useEffect } from 'react' +import { cn } from 'ui' import type { Snapshot } from 'valtio' import { @@ -35,11 +36,18 @@ const NotebookTabStatusIndicator = ({ tab }: { tab: Tab }) => { if (!isNotebookTabDirty({ stateNotebook, ref, notebookId })) return null + const isNewNotebook = ['new', 'new_saving', 'new_save_failed'].includes( + stateNotebook?.status ?? '' + ) + return ( ) }