@webitel/ui-sdk 24.10.88 → 24.10.90
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [v24.10.88] - 2024-11-20
|
|
4
|
+
### :bug: Bug Fixes
|
|
5
|
+
- [`cf746a0`](https://github.com/webitel/webitel-ui-sdk/commit/cf746a0173603767adbeffea4e970fd790aea782) - return wfm pages in release 24.10 *(commit by [@Lera24](https://github.com/Lera24))*
|
|
6
|
+
|
|
7
|
+
|
|
3
8
|
## [v24.10.87] - 2024-11-19
|
|
4
9
|
### :bug: Bug Fixes
|
|
5
10
|
- [`12df75b`](https://github.com/webitel/webitel-ui-sdk/commit/12df75b9427d3c75804993671835c2ffadbc0fbd) - hiding wfm pages before release *(commit by [@Lera24](https://github.com/Lera24))*
|
|
@@ -282,3 +287,4 @@
|
|
|
282
287
|
[v24.10.84]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.83...v24.10.84
|
|
283
288
|
[v24.10.86]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.85...v24.10.86
|
|
284
289
|
[v24.10.87]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.86...v24.10.87
|
|
290
|
+
[v24.10.88]: https://github.com/webitel/webitel-ui-sdk/compare/v24.10.87...v24.10.88
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ const catalogService = new CatalogApiFactory(configuration, '', instance);
|
|
|
15
15
|
|
|
16
16
|
const getChatMessagesList = async ({ chatId }) => {
|
|
17
17
|
const mergeMessagesData = ({ messages, peers }) => {
|
|
18
|
+
if (!messages) return [];
|
|
18
19
|
return messages.map(({ from, ...message }) => {
|
|
19
20
|
return {
|
|
20
21
|
...message,
|
|
@@ -87,7 +87,8 @@ export default {
|
|
|
87
87
|
},
|
|
88
88
|
|
|
89
89
|
async setFrom(value) {
|
|
90
|
-
const
|
|
90
|
+
const from = value ? value : null; // if value is empty, set it to null
|
|
91
|
+
const filterValue = { from, to: this.value.to };
|
|
91
92
|
await this.setValue({ filter: this.filterQuery, value: filterValue });
|
|
92
93
|
await this.setValueToQuery({
|
|
93
94
|
filterQuery: `${this.filterQuery}From`,
|
|
@@ -96,7 +97,8 @@ export default {
|
|
|
96
97
|
},
|
|
97
98
|
|
|
98
99
|
async setTo(value) {
|
|
99
|
-
const
|
|
100
|
+
const to = value ? value : null; // if value is empty, set it to null
|
|
101
|
+
const filterValue = { from: this.value.from, to };
|
|
100
102
|
await this.setValue({ filter: this.filterQuery, value: filterValue });
|
|
101
103
|
await this.setValueToQuery({
|
|
102
104
|
filterQuery: `${this.filterQuery}To`,
|