@capillarytech/creatives-library 8.0.136-beta.0 → 8.0.136-beta.3
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
|
@@ -59,7 +59,7 @@ export const LineText = ({
|
|
|
59
59
|
const [translationLang, updateTranslationLang] = useState('en');
|
|
60
60
|
|
|
61
61
|
useEffect(() => {
|
|
62
|
-
const { messageTitle = '', messageContent = '', type, isInit } = content;
|
|
62
|
+
const { messageTitle = '', messageContent = '', type, isInit } = content || {};
|
|
63
63
|
if (type === 'text') {
|
|
64
64
|
if (messageContent) {
|
|
65
65
|
updateCreateNew(true);
|
|
@@ -104,11 +104,11 @@ export const LineText = ({
|
|
|
104
104
|
layout: 'LINE',
|
|
105
105
|
type: 'TAG',
|
|
106
106
|
context:
|
|
107
|
-
location
|
|
107
|
+
location?.query?.type === 'embedded'
|
|
108
108
|
? 'outbound'
|
|
109
109
|
: 'default',
|
|
110
110
|
embedded:
|
|
111
|
-
location
|
|
111
|
+
location?.query?.type === 'embedded'
|
|
112
112
|
? location.query.type
|
|
113
113
|
: 'full',
|
|
114
114
|
};
|
|
@@ -125,7 +125,7 @@ export const LineText = ({
|
|
|
125
125
|
context:
|
|
126
126
|
(data || '').toLowerCase() === 'all' ? 'default' : (data || '').toLowerCase(),
|
|
127
127
|
embedded:
|
|
128
|
-
location
|
|
128
|
+
location?.query?.type === 'embedded'
|
|
129
129
|
? location.query.type
|
|
130
130
|
: 'full',
|
|
131
131
|
};
|
|
@@ -266,7 +266,7 @@ export const LineText = ({
|
|
|
266
266
|
/>
|
|
267
267
|
<TagList
|
|
268
268
|
key={`${id}_tags`}
|
|
269
|
-
moduleFilterEnabled={location && location
|
|
269
|
+
moduleFilterEnabled={location && location?.query && location?.query?.type !== 'embedded'}
|
|
270
270
|
label={formatMessage(messages.addLabels)}
|
|
271
271
|
onTagSelect={onTagSelect}
|
|
272
272
|
onContextChange={handleOnTagsContextChange}
|