yusuketk пре 7 година
родитељ
комит
882f5d808c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/client/js/components/PageTagForm.jsx

+ 1 - 1
src/client/js/components/PageTagForm.jsx

@@ -49,7 +49,7 @@ export default class PageTagForm extends React.Component {
           onSearch={async query => {
           onSearch={async query => {
             this.setState({ isLoading: true });
             this.setState({ isLoading: true });
             const res = await this.crowi.apiGet('/tags.search', { q: query });
             const res = await this.crowi.apiGet('/tags.search', { q: query });
-            res.tags.push(query); // selectable query
+            res.tags.unshift(query); // selectable query
             this.setState({
             this.setState({
               resultTags: Array.from(new Set(res.tags)), // use Set for de-duplication
               resultTags: Array.from(new Set(res.tags)), // use Set for de-duplication
               isLoading: false,
               isLoading: false,