dmed-voice-assistant 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -88,7 +88,7 @@ const Recognition = _ref4 => {
88
88
  const recognitionRef = (0, _react.useRef)(null);
89
89
  const mediaRecorderRef = (0, _react.useRef)(null);
90
90
  const [result, setResult] = (0, _react.useState)([]);
91
- const [historyList, setHistoryList] = (0, _react.useState)(recognitionHistoryList);
91
+ const [historyList, setHistoryList] = (0, _react.useState)([]);
92
92
  const [filterHistoryList, setFilterHistoryList] = (0, _react.useState)([]);
93
93
  const [dropdownList, setDropdownList] = (0, _react.useState)([]);
94
94
  const [recordTime, setRecordTime] = (0, _react.useState)(0);
@@ -299,6 +299,9 @@ const Recognition = _ref4 => {
299
299
  }, {});
300
300
  setFilterHistoryList(groupedData[selectedDate] ? groupedData[selectedDate] : []);
301
301
  }, [selectedDate, historyList]);
302
+ (0, _react.useEffect)(() => {
303
+ setHistoryList(recognitionHistoryList);
304
+ }, [recognitionHistoryList]);
302
305
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
303
306
  className: "bg-white rounded-[5px] p-[20px] w-[440px]",
304
307
  sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dmed-voice-assistant",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"