visuddhinanda 3 лет назад
Родитель
Сommit
978fc0d4d6
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      dashboard/src/components/channel/ChannelSentDiff.tsx

+ 2 - 2
dashboard/src/components/channel/ChannelSentDiff.tsx

@@ -1,5 +1,5 @@
 import { Button, Col, List, message, Row, Space, Typography } from "antd";
-import { diffWords } from "diff";
+import { diffChars } from "diff";
 import { useEffect, useState } from "react";
 import { SwapRightOutlined } from "@ant-design/icons";
 
@@ -113,7 +113,7 @@ const Widget = ({
           element.wordStart === parseInt(id[2]) &&
           element.wordEnd === parseInt(id[3])
       );
-      const diff = diffWords(
+      const diff = diffChars(
         destContent ? destContent.content : "",
         srcContent ? srcContent.content : ""
       );