Skip to content

Commit

Permalink
Merge branch 'main' into fix/project-switching-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sra405 committed Mar 7, 2024
2 parents eaff1ba + 2b0cecf commit 9d29cb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed

- Page crashing when toggling between projects (#946)
- Get `pyodide` working in the web component (#945)

## [0.22.1] - 2024-02-23

Expand Down
6 changes: 4 additions & 2 deletions src/components/Editor/Runners/PyodideRunner/PyodideRunner.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable react-hooks/exhaustive-deps */

import "../../../../assets/stylesheets/PythonRunner.scss";
import { useContext, useEffect, useMemo, useRef, useState } from "react";
import React, { useContext, useEffect, useMemo, useRef, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useTranslation } from "react-i18next";
import {
Expand Down Expand Up @@ -186,7 +186,9 @@ const PyodideRunner = () => {

const program = projectCode[0].content;

interruptBuffer.current[0] = 0; // Clear previous signals.
if (interruptBuffer.current) {
interruptBuffer.current[0] = 0; // Clear previous signals.
}
pyodideWorker.postMessage({ method: "runPython", python: program });
};

Expand Down

0 comments on commit 9d29cb2

Please sign in to comment.