This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Empty waveform peaks data renders an empty waveform; should render placeholder instead. #1074
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟥 priority: critical
Must be addressed ASAP
Description
The API returns an empty array when the waveform peaks have not been generated. The frontend currently assumes that any array returned will include waveform data. However, the frontend should also check the length of the array and use the placeholder if the peaks array is empty.
Alternatively we could update the API to return
null
for thepeaks
when they haven't been generated yet.Marked as critical because we can't deploy without this fix or we'll have empty waveforms for most audio.
Resolution
The text was updated successfully, but these errors were encountered: