 
 
   reviveCredential: (identifier, templateId) ->
+
+    return  if templateId in @_loadedTemplates
 
     @editor.setClass 'loading'
     @logs.add 'loading custom variables'

module.exports = class VariablesController extends BaseController


  setData: (data) ->

    super data

          return kd.warn err

        @logs.add 'custom variables loaded'
        @_loadedTemplates.push templateId

        { meta } = data
        if (Object.keys meta).length > 1
          content = meta.__rawContent ? (jsonToYaml meta).content

          @editor.setContent unescape content
