mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 03:09:55 +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