mirror of
https://github.com/jupyter/notebook.git
synced 2024-11-27 03:20:27 +08:00
commit for testing (#6775)
This commit is contained in:
parent
44eb35e2e5
commit
551515559b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user