teodor-new-chat-ui 4.3.572 → 4.3.573
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/index.esm.js +5 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -17951,11 +17951,13 @@ function $1({
|
|
|
17951
17951
|
);
|
|
17952
17952
|
}, [l, e, n, r, t]), M = Be(() => {
|
|
17953
17953
|
let F = l;
|
|
17954
|
-
if (v
|
|
17954
|
+
if (v) {
|
|
17955
17955
|
const _ = F.findIndex((j) => j.id === v.id);
|
|
17956
17956
|
if (_ !== -1) {
|
|
17957
|
-
|
|
17958
|
-
|
|
17957
|
+
if (g) {
|
|
17958
|
+
const j = [...F];
|
|
17959
|
+
j[_] = v, F = j;
|
|
17960
|
+
}
|
|
17959
17961
|
} else
|
|
17960
17962
|
F = [...F, v];
|
|
17961
17963
|
}
|