Fixed a bug that caused an error and an empty card to appear in the rooms suggestions page when there are no gap suggestions. Modified the getEmptySuggestions function in rooms-utils.js and the getSuggestions function in suggestions.jsx to handle the null case.
No rooms availablegetEmptySuggestions returns nullEmpty card no more
Walkthrough
Return null instead of empty array when no gap suggestion is possible (link)
Handle null case for emptySuggestions in getSuggestions function (link)
🤖[deprecated] Generated by Copilot at 99361cf
Summary
🚫🛑🗑️
Fixed a bug that caused an error and an empty card to appear in the rooms suggestions page when there are no gap suggestions. Modified the
getEmptySuggestions
function inrooms-utils.js
and thegetSuggestions
function insuggestions.jsx
to handle the null case.Walkthrough