diff --git a/packages/notebook-extension/src/trusted.tsx b/packages/notebook-extension/src/trusted.tsx index 53e77b1f6..cec67ad9f 100644 --- a/packages/notebook-extension/src/trusted.tsx +++ b/packages/notebook-extension/src/trusted.tsx @@ -4,8 +4,6 @@ import { Notebook, NotebookActions } from '@jupyterlab/notebook'; import { ITranslator } from '@jupyterlab/translation'; -import { toArray } from '@lumino/algorithm'; - import React, { useEffect, useState } from 'react'; /** @@ -18,7 +16,7 @@ const isTrusted = (notebook: Notebook): boolean => { if (!model) { return false; } - const cells = toArray(model.cells); + const cells = Array.from(model.cells); const trusted = cells.reduce((accum, current) => { if (current.trusted) {