mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
Previously, when the array had both nil and string values it returned the error "comparison of NilClass with String failed". Now I added the `.compact` method to prevent this issue as per @martin-brennan's suggestion https://github.com/discourse/discourse/pull/18431#discussion_r984204788