visuddhinanda пре 3 година
родитељ
комит
6bb093eace
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      dashboard/src/components/template/SentEdit/SentTab.tsx

+ 3 - 0
dashboard/src/components/template/SentEdit/SentTab.tsx

@@ -25,6 +25,9 @@ const Widget = ({
   const [nissayaActive, setNissayaActive] = useState<boolean>(false);
   const [commentaryActive, setCommentaryActive] = useState<boolean>(false);
   const [originalActive, setOriginalActive] = useState<boolean>(false);
+  if (typeof id === "undefined") {
+    return <></>;
+  }
   const sentId = id.split("_");
 
   const onChange = (key: string) => {