Skip to content

Commit

Permalink
fix: use observer cell for get latest outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector authored and sunshinesmilelk committed Feb 2, 2024
1 parent 9b8ddfd commit 9c11bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/libro-jupyter/src/components/cell-execution-tip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function CellExecutionTip({ cell }: { cell: CellView }) {
const [, setCurrentTime] = useState<number>();
const observableCell = useObserve(cell);

if (!ExecutableCellView.is(cell)) {
if (!ExecutableCellView.is(observableCell)) {
return null;
}

Expand All @@ -38,7 +38,7 @@ export function CellExecutionTip({ cell }: { cell: CellView }) {
.kernelExecuting;
const executionInfo = parseExecutionInfoFromModel(cell.model);

const output = cell.outputArea.outputs;
const output = observableCell.outputArea.outputs;
const existOutput = output && output.length !== 0;

const waitingExecute = isWaitingExecute(observableCell.model);
Expand Down

0 comments on commit 9c11bc7

Please sign in to comment.