@webitel/ui-sdk 24.12.2 → 24.12.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "24.12.2",
3
+ "version": "24.12.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -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,
@@ -6,7 +6,7 @@ export const useCardTabs = (tabs) => {
6
6
  const route = useRoute();
7
7
 
8
8
  const currentTab = computed(() => {
9
- return tabs.find(({ pathName }) => route.name === pathName) || tabs[0];
9
+ return tabs?.value.find(({ pathName }) => route.name === pathName) || tabs?.value[0];
10
10
  });
11
11
 
12
12
  function changeTab(tab) {
@@ -5,6 +5,6 @@ export const useValidate = (schema, data) => {
5
5
 
6
6
  return {
7
7
  v$,
8
- invalid: v$.$invalid,
8
+ invalid: v$.value?.$invalid,
9
9
  };
10
10
  }