dmed-voice-assistant 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/recognition.js +4 -1
- package/package.json +1 -1
package/dist/recognition.js
CHANGED
@@ -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)(
|
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: {
|