Skip to content

Commit 48ab64e

Browse files
committed
fix bug with program activity
1 parent 37bed9a commit 48ab64e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/settings/ActivityStatus.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,15 @@ function ProgramOptions() {
235235
const { createPortal } = useCustomPortal();
236236

237237
const getPrograms = () => {
238-
electronWindowAPI()?.getRunningPrograms(addedPrograms()).then(setPrograms);
238+
electronWindowAPI()
239+
?.getRunningPrograms(JSON.parse(JSON.stringify(addedPrograms())))
240+
.then(setPrograms);
239241
};
240242

241243
const restartActivityStatus = () => {
242-
electronWindowAPI()?.restartActivityStatus(addedPrograms());
244+
electronWindowAPI()?.restartActivityStatus(
245+
JSON.parse(JSON.stringify(addedPrograms()))
246+
);
243247
};
244248

245249
const updateProgram = (index: number, program: ProgramWithExtras) => {

0 commit comments

Comments
 (0)