visuddhinanda 2 лет назад
Родитель
Сommit
fc50bff55d
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      dashboard/src/components/template/Wbw/RelaGraphic.tsx

+ 2 - 2
dashboard/src/components/template/Wbw/RelaGraphic.tsx

@@ -1,7 +1,7 @@
 import Mermaid from "../../general/Mermaid";
 import { useAppSelector } from "../../../hooks";
 import { getTerm } from "../../../reducers/term-vocabulary";
-import { IRelation } from "./WbwDetailRelation";
+import { IWbwRelation } from "./WbwDetailRelation";
 import { IWbw } from "./WbwWord";
 
 interface IWidget {
@@ -18,7 +18,7 @@ const RelaGraphicWidget = ({ wbwData }: IWidget) => {
       ?.filter((value) => value.relation)
       .map((item) => {
         if (item.relation && item.relation.value) {
-          const json: IRelation[] = JSON.parse(item.relation.value);
+          const json: IWbwRelation[] = JSON.parse(item.relation.value);
           const graphic = json.map((relation) => {
             const localName = terms?.find(
               (item) => item.word === relation.relation