fixed videos selectors filters

This commit is contained in:
Dmitri 2026-03-31 14:08:47 +04:00
parent 7e532f8752
commit b92132db09

View File

@ -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