Fixed lint issue about overwriting the argument

This commit is contained in:
KoloMl 2024-12-14 23:47:35 +04:00
parent 9a0ae3971b
commit ea69049e21

View file

@ -44,11 +44,13 @@ function applySelectedValue(selection: string) {
if (!inputField) return;
if (!isSearchField(inputField)) {
let resultValue = selection;
if (originalTerm?.startsWith('-')) {
selection = `-${selection}`;
resultValue = `-${selection}`;
}
inputField.value = selection;
inputField.value = resultValue;
return;
}