]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix default searchTokens
authorabcang <abcang1015@gmail.com>
Mon, 22 Feb 2021 10:26:08 +0000 (19:26 +0900)
committerClaire <claire.github-309c@sitedethib.com>
Mon, 22 Feb 2021 14:47:17 +0000 (15:47 +0100)
Port 2127f40e6bf6deab62f48030263c459d14fed364 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/components/autosuggest_input.js

index cc0ff7deaace302a8fc359703958b7818ea090d0..b40a2ff3500524e1de34a66171a5243a514fb07e 100644 (file)
@@ -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 = {