     Body = NetworkActivity if store?.isLoading(id)
 
     guardProps =
-      onlyPromptIf: ->
+      onlyPromptIf: (ev) ->
         id and store?.isChanged(id)
+
       placement: 'right'
       message: "You will lose all unsaved changes"
 

            <BS.ButtonToolbar className="navbar-btn">
              {if view
                <SuretyGuard
                  onConfirm={@onReset}
                  {...guardProps}
                >
                  <a href="/exercises" className="btn btn-danger back">Back</a>
                </SuretyGuard>}

              <SuretyGuard


    return newId

  onSearch: ->
    @props.location.visitSearch()

  render: ->
