Skip to content

Commit efa9fa1

Browse files
Tom LarkworthyTom Larkworthy
authored andcommitted
Conditional tidy up
1 parent ca303b5 commit efa9fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ app.all(observable.pattern, [
130130
const notebookURL = observable.notebookURL(req, req.cachedConfig);
131131
const shard = req.cachedConfig?.namespace || req.requestConfig.namespace || notebookURL;
132132
const releasePage = async () => {
133-
delete page.requests[req.id];
133+
if (page) delete page.requests[req.id];
134134
if (page && !localmode && !page.isClosed()) {
135135
if (!req?.cachedConfig?.reusable) await page.close();
136136
page = undefined;

0 commit comments

Comments
 (0)