yusuketk 7 år sedan
förälder
incheckning
7081c1bbdc
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5 5
      src/client/js/app.js

+ 5 - 5
src/client/js/app.js

@@ -114,6 +114,10 @@ if (isEnabledPlugins) {
   crowiPlugin.installAll(crowi, crowiRenderer);
 }
 
+const setTagsForNewPage = function(tagData) {
+  tagsForNewPage = tagData;
+};
+
 /**
  * component store
  */
@@ -274,10 +278,6 @@ if (!pageRevisionId && draft != null) {
   markdown = draft;
 }
 
-const setTagData = function(tagData) {
-  tagsForNewPage = tagData;
-};
-
 /**
  * define components
  *  key: id of element
@@ -304,7 +304,7 @@ if (pageId) {
 }
 if (pagePath) {
   componentMappings.page = <Page crowi={crowi} crowiRenderer={crowiRenderer} markdown={markdown} pagePath={pagePath} onSaveWithShortcut={saveWithShortcut} />;
-  componentMappings['revision-path'] = <RevisionPath pageId={pageId} pagePath={pagePath} crowi={crowi} sendTagData={setTagData} />;
+  componentMappings['revision-path'] = <RevisionPath pageId={pageId} pagePath={pagePath} crowi={crowi} sendTagData={setTagsForNewPage} />;
   componentMappings['revision-url'] = <RevisionUrl pageId={pageId} pagePath={pagePath} />;
 }