 
       # Render the object
       PRE className: 'right', ref: 'json_preview',
-        JSON.stringify(arest.cache[best_guess], undefined, 3)
+        JSON.stringify(arest.cache[dash.curr_obj], undefined, 3)
 
   # Other methods
   search_results: () ->

    true

  componentDidUpdate: () ->
    el = @refs.json_preview?.getDOMNode()
    if el?.innerHTML.length < 10000
      el.innerHTML = rainbows(el.innerHTML)
reset_selection = () ->
  dash = fetch('state_dash')
  dash.selected = {owner: null, name: null, number: null}

          return key
      return null

    dash.curr_obj = first_key(search_results.key_matches) or \
                    first_key(search_results.data_matches)

    DIV className: 'state_dash',
      STYLE null,
