It’s fixed as per below commit
https://github.com/discourse/discourse/commit/515e103db624cec01f6d15e9fda74e165d4f855d