@dev.smartpricing/message-composer-layer 1.0.9 → 1.0.11
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.
|
@@ -19,7 +19,7 @@ const { locale } = useI18n()
|
|
|
19
19
|
const { data: messageGroup, isLoading } = useMessageGroupQuery(() => props.id)
|
|
20
20
|
|
|
21
21
|
const selectedMessage = computed(() => {
|
|
22
|
-
if (!messageGroup.value?.messages
|
|
22
|
+
if (!messageGroup.value?.messages?.length) return undefined
|
|
23
23
|
|
|
24
24
|
const msgByLocale = messageGroup.value.messages.find((m) => m.language_id === locale.value)
|
|
25
25
|
if (msgByLocale) return msgByLocale
|
|
@@ -58,7 +58,7 @@ const resolvedMessage = computed<PostEntity<EmailMessage> | undefined>(() => {
|
|
|
58
58
|
return fetchedMessage.value as unknown as PostEntity<EmailMessage>
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
if (mode.value === 'byGroup' && messageGroup.value) {
|
|
61
|
+
if (mode.value === 'byGroup' && messageGroup.value?.messages?.length) {
|
|
62
62
|
const messages = messageGroup.value.messages
|
|
63
63
|
const msg =
|
|
64
64
|
messages.find((m) => m.language_id === props.language) ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev.smartpricing/message-composer-layer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"vue-router": "^5.0.6",
|
|
40
40
|
"vue3-emoji-picker": "^1.1.8",
|
|
41
41
|
"zod": "^4.4.1",
|
|
42
|
-
"@dev.smartpricing/message-composer-utils": "3.1.
|
|
42
|
+
"@dev.smartpricing/message-composer-utils": "3.1.11"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@nuxt/eslint": "^1.15.2",
|
|
File without changes
|