mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:42:46 +08:00
REFACTOR: Remove _.isString
This commit is contained in:
parent
b4444070b3
commit
e60d06d880
|
@ -473,7 +473,7 @@ export default function(options) {
|
|||
inputSelectedItems.push("");
|
||||
}
|
||||
|
||||
if (_.isString(inputSelectedItems[0]) && me.val().length > 0) {
|
||||
if (typeof inputSelectedItems[0] === "string" && me.val().length > 0) {
|
||||
inputSelectedItems.pop();
|
||||
inputSelectedItems.push(me.val());
|
||||
if (options.onChangeItems) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user