DEV: removes unnecessary complexity (#5)

DEV: removes unnecessary complexity (#5)

This will be implicitly converted to a string and doesn’t need these double [[]].

const EDIT = "edit";
const SAVE_LABELS = { [EDIT]: "composer.save_edit" };

SAVE_LABELS[EDIT] // "composer.save_edit"
diff --git a/assets/javascripts/initializers/shared-edits-init.js.es6 b/assets/javascripts/initializers/shared-edits-init.js.es6
index 6449dd6..282806f 100644
--- a/assets/javascripts/initializers/shared-edits-init.js.es6
+++ b/assets/javascripts/initializers/shared-edits-init.js.es6
@@ -19,8 +19,8 @@ import { SAVE_LABELS, SAVE_ICONS } from "discourse/models/composer";
 const SHARED_EDIT_ACTION = "sharedEdit";
 
 function initWithApi(api) {
-  SAVE_LABELS[[SHARED_EDIT_ACTION]] = "composer.save_edit";
-  SAVE_ICONS[[SHARED_EDIT_ACTION]] = "pencil-alt";
+  SAVE_LABELS[SHARED_EDIT_ACTION] = "composer.save_edit";
+  SAVE_ICONS[SHARED_EDIT_ACTION] = "pencil-alt";
 
   api.includePostAttributes("shared_edits_enabled");
 

GitHub sha: 5c894732

This commit appears in #5 which was approved by eviltrout. It was merged by jjaffeux.