Skip to content

Commit

Permalink
fix: remove toast for notebook saved (#3418)
Browse files Browse the repository at this point in the history
Fixes #3402
Fixes #3016
  • Loading branch information
mscolnick authored Jan 14, 2025
1 parent 578e19e commit f6769ea
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions frontend/src/core/saving/save-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { Button } from "../../components/ui/button";
import { useEvent } from "../../hooks/useEvent";
import { Logger } from "../../utils/Logger";
import { useAutoSave } from "./useAutoSave";
import { toast } from "../../components/ui/use-toast";
import { getSerializedLayout, useLayoutState } from "../layout/layout";
import { useAtom, useAtomValue, useSetAtom } from "jotai";
import { formatAll } from "../codemirror/format";
Expand Down Expand Up @@ -121,11 +120,8 @@ export function useSaveNotebook({ kioskMode, appConfig }: SaveNotebookProps) {
layout: getSerializedLayout(),
persist: true,
}).then(() => {
if (userInitiated) {
toast({ title: "Notebook saved" });
if (autoSaveConfig.format_on_save) {
formatAll(updateCellCode);
}
if (userInitiated && autoSaveConfig.format_on_save) {
formatAll(updateCellCode);
}
setLastSavedNotebook({
names: cellNames,
Expand Down

0 comments on commit f6769ea

Please sign in to comment.