We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44eb35e commit 5515155Copy full SHA for 5515155
packages/notebook-extension/src/trusted.tsx
@@ -4,8 +4,6 @@ import { Notebook, NotebookActions } from '@jupyterlab/notebook';
4
5
import { ITranslator } from '@jupyterlab/translation';
6
7
-import { toArray } from '@lumino/algorithm';
8
-
9
import React, { useEffect, useState } from 'react';
10
11
/**
@@ -18,7 +16,7 @@ const isTrusted = (notebook: Notebook): boolean => {
18
16
if (!model) {
19
17
return false;
20
}
21
- const cells = toArray(model.cells);
+ const cells = Array.from(model.cells);
22
23
const trusted = cells.reduce((accum, current) => {
24
if (current.trusted) {
0 commit comments