diff options
author | abcang <abcang1015@gmail.com> | 2021-02-22 19:26:08 +0900 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-02-22 15:47:17 +0100 |
commit | 6ae04d990c50c12e171fc2a3d2593fa42d9c4c9c (patch) | |
tree | 8850793f3118de3a91e2e224bcec9651e023acd0 /app/javascript/flavours/glitch/components | |
parent | 24fb5d75725f584b0f8d12c8331b15f724ff847d (diff) |
[Glitch] Fix default searchTokens
Port 2127f40e6bf6deab62f48030263c459d14fed364 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/autosuggest_input.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/autosuggest_input.js b/app/javascript/flavours/glitch/components/autosuggest_input.js index cc0ff7dea..b40a2ff35 100644 --- a/app/javascript/flavours/glitch/components/autosuggest_input.js +++ b/app/javascript/flavours/glitch/components/autosuggest_input.js @@ -6,7 +6,6 @@ import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import classNames from 'classnames'; -import { List as ImmutableList } from 'immutable'; const textAtCursorMatchesToken = (str, caretPosition, searchTokens) => { let word; @@ -55,7 +54,7 @@ export default class AutosuggestInput extends ImmutablePureComponent { static defaultProps = { autoFocus: true, - searchTokens: ImmutableList(['@', ':', '#']), + searchTokens: ['@', ':', '#'], }; state = { |