Skip to content

Commit

Permalink
fix: filter out flavors with height 0 (#66)
Browse files Browse the repository at this point in the history
### Description of the Changes

Filter out flavors with height 0 to not show captions as sources

### CheckLists

- [ ] changes have been done against master branch, and PR does not
conflict
- [ ] new unit / functional tests have been added (whenever applicable)
- [ ] test are passing in local environment
- [ ] Travis tests are passing (or test results are not worse than on
master branch :))
- [ ] Docs have been updated
  • Loading branch information
SivanA-Kaltura authored Aug 5, 2024
1 parent 6b4084c commit a810c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sources-list/sources-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const SourcesList = withText({

const _renderFlavors = (flavors: Array<KalturaFlavorAsset>) => {
return flavors.map((flavor: KalturaFlavorAsset) => {
if (flavor.downloadUrl && flavor.id !== defaultFlavor?.id) {
if (flavor.height > 0 && flavor.downloadUrl && flavor.id !== defaultFlavor?.id) {
return _renderFlavor(flavor);
}
});
Expand Down

0 comments on commit a810c34

Please sign in to comment.