fixed videos selectors filters
This commit is contained in:
parent
7e532f8752
commit
b92132db09
@ -465,7 +465,10 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
|
|||||||
() =>
|
() =>
|
||||||
assets
|
assets
|
||||||
.filter(
|
.filter(
|
||||||
(asset) => asset.asset_type === 'video' && getAssetSourceValue(asset),
|
(asset) =>
|
||||||
|
asset.asset_type === 'video' &&
|
||||||
|
asset.type !== 'transition' &&
|
||||||
|
getAssetSourceValue(asset),
|
||||||
)
|
)
|
||||||
.map((asset) => ({
|
.map((asset) => ({
|
||||||
value: getAssetSourceValue(asset),
|
value: getAssetSourceValue(asset),
|
||||||
@ -512,10 +515,8 @@ const ConstructorPage = ({ mode = 'constructor' }: ConstructorPageProps) => {
|
|||||||
label: getAssetLabel(asset),
|
label: getAssetLabel(asset),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (taggedAssets.length > 0) return taggedAssets;
|
return taggedAssets;
|
||||||
|
}, [assets]);
|
||||||
return videoAssetOptions;
|
|
||||||
}, [assets, videoAssetOptions]);
|
|
||||||
const iconAssetOptions = useMemo(
|
const iconAssetOptions = useMemo(
|
||||||
() =>
|
() =>
|
||||||
assets
|
assets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user