                      (let [query-cursor       (reagent/cursor query-get-set [index])
                            selected-language  (-> @query-cursor :query :lang)
                            remove-row-handler (partial remove-query index)]
+                       ^{:key index}
                        [:div.row
                         [:div.col-md-12
-                         (when multilingual? [language-select languages selected-language])
-                         ^{:key index} [view @corpus query-cursor show-remove-row-btn?
-                                        remove-row-handler]]]))))
+                         (when multilingual?
+                           [language-select languages selected-language])
+                         [view @corpus query-cursor show-remove-row-btn? remove-row-handler]]]))))
           (when-not multilingual? [add-phrase-button])]))}))

                             has-phonetic?         (:has-phonetic corpus)
                             remove-term-handler   #()]
                         (list (when-not first?
                                 [interval query-cursor term])
                               [multiword-term query-cursor term first? last? has-phonetic?
                                show-remove-row-btn? remove-row-handler
                                show-remove-term-btn? remove-term-handler])))

  or CQP query view) and displays it."
  [{:keys [search-view search-queries]} {:keys [corpus]}]
  (reagent/create-class
    {:display-name
     "search-inputs"

     :component-did-mount
     focus-text-input

     :reagent-render
