mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FIX: forces boolean when content is only "true" && "false"
This commit is contained in:
@ -63,7 +63,7 @@ export default SelectKitComponent.extend({
|
||||
switch (typeof value) {
|
||||
case "string":
|
||||
case "number":
|
||||
return this._castInteger(value === "" ? null : value);
|
||||
return this._cast(value === "" ? null : value);
|
||||
default:
|
||||
return value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user