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