瀏覽代碼

remove toast

AykutSarac 2 年之前
父節點
當前提交
64d412a075
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/utils/jsonParser.ts

+ 0 - 2
src/utils/jsonParser.ts

@@ -1,4 +1,3 @@
-import toast from "react-hot-toast";
 
 const calculateSize = (
   text: string | [string, string][],
@@ -143,7 +142,6 @@ export const parser = (jsonStr: string, isExpanded = true) => {
     return { nodes, edges };
   } catch (error) {
     console.error(error);
-    toast.error("An error occured while parsing JSON data!");
     return {
       nodes: [],
       edges: [],