Commit f9d32b3a authored by Clement Ho's avatar Clement Ho

Fix spec

parent c0880e22
......@@ -3,7 +3,7 @@ require('./filtered_search_token_keys');
const weightTokenKey = {
key: 'weight',
type: 'string',
param: 'weight',
param: '',
symbol: '',
icon: 'balance-scale',
};
......@@ -57,7 +57,7 @@ class FilteredSearchTokenKeysWithWeights extends gl.FilteredSearchTokenKeys {
return tokenKeysWithAlternative.find((tokenKey) => {
let tokenKeyParam = tokenKey.key;
if (tokenKey.param !== 'weight') {
if (tokenKey.param) {
tokenKeyParam += `_${tokenKey.param}`;
}
......
......@@ -6,7 +6,7 @@ require('~/filtered_search/filtered_search_token_keys_with_weights');
const weightTokenKey = {
key: 'weight',
type: 'string',
param: 'weight',
param: '',
symbol: '',
icon: 'balance-scale',
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment