diff --git a/packages/jupyter/src/ConnectionStatusTray.tsx b/packages/jupyter/src/ConnectionStatusTray.tsx index 5d48534c..4bafc838 100644 --- a/packages/jupyter/src/ConnectionStatusTray.tsx +++ b/packages/jupyter/src/ConnectionStatusTray.tsx @@ -41,8 +41,8 @@ export function ConnectionStatusTray({ waitForSessions }: { waitForSessions?: bo const host = options?.thebe?.useBinder ? 'Jupyter' : options?.thebe?.useJupyterLite - ? 'JupyterLite' - : 'Local Server'; + ? 'JupyterLite' + : 'Local Server'; // TODO radix ui toast! if (show && error) { diff --git a/packages/jupyter/src/execute/selectors.ts b/packages/jupyter/src/execute/selectors.ts index bbd9e732..cda64f84 100644 --- a/packages/jupyter/src/execute/selectors.ts +++ b/packages/jupyter/src/execute/selectors.ts @@ -26,7 +26,7 @@ export function selectAreExecutionScopesBuilding(state: ExecuteScopeState, slug: } export function selectExecutionScopeStatus(state: ExecuteScopeState, slug: string) { - return state.pages[slug]?.ready ? 'ready' : state.builds[slug]?.status ?? 'unknown'; + return state.pages[slug]?.ready ? 'ready' : (state.builds[slug]?.status ?? 'unknown'); } // diff --git a/packages/myst-to-react/src/crossReference.tsx b/packages/myst-to-react/src/crossReference.tsx index 9d5de55b..cbddf7f0 100644 --- a/packages/myst-to-react/src/crossReference.tsx +++ b/packages/myst-to-react/src/crossReference.tsx @@ -130,8 +130,8 @@ export function CrossReferenceHover({ const parent = useXRefState(); const remoteBaseUrl = remoteBaseUrlIn ?? parent.remoteBaseUrl; const remote = !!remoteBaseUrl || parent.remote || remoteIn; - const url = parent.remote ? urlIn ?? parent.url : urlIn; - const dataUrl = parent.remote ? dataUrlIn ?? parent.dataUrl : dataUrlIn; + const url = parent.remote ? (urlIn ?? parent.url) : urlIn; + const dataUrl = parent.remote ? (dataUrlIn ?? parent.dataUrl) : dataUrlIn; const external = !!remoteBaseUrl || (url?.startsWith('http') ?? false); const scroll: React.MouseEventHandler = (e) => { e.preventDefault();