mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 05:25:35 +08: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