@onesy/ui-react 1.0.42 → 1.0.43
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/Medias/Medias.js +1 -1
- package/esm/Medias/Medias.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
package/Medias/Medias.js
CHANGED
@@ -186,7 +186,7 @@ const Medias = react_1.default.forwardRef((props_, ref) => {
|
|
186
186
|
other: [],
|
187
187
|
embed: []
|
188
188
|
};
|
189
|
-
values.filter(
|
189
|
+
values.filter(item => (item === null || item === void 0 ? void 0 : item.value) && !!Object.keys(item.value).length).forEach(item => {
|
190
190
|
var _a, _b, _c;
|
191
191
|
const media = item.value;
|
192
192
|
if (media) {
|
package/esm/Medias/Medias.js
CHANGED
@@ -203,7 +203,7 @@ const Medias = /*#__PURE__*/React.forwardRef((props_, ref) => {
|
|
203
203
|
other: [],
|
204
204
|
embed: []
|
205
205
|
};
|
206
|
-
values.filter(
|
206
|
+
values.filter(item => item?.value && !!Object.keys(item.value).length).forEach(item => {
|
207
207
|
const media = item.value;
|
208
208
|
if (media) {
|
209
209
|
if (media.urlEmbed !== undefined) items_.embed.push(item);else if (media.mime?.startsWith('image')) items_.image.push(item);else if (media.mime?.startsWith('audio')) items_.audio.push(item);else if (media.mime?.startsWith('video')) items_.video.push(item);else items_.other.push(item);
|
package/esm/index.js
CHANGED