Parcourir la source

currentpagetags is list

yusuketk il y a 7 ans
Parent
commit
beb83c38b4
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/client/js/app.js

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

@@ -65,7 +65,7 @@ let pagePath;
 let pageContent = '';
 let markdown = '';
 let slackChannels;
-let currentPageTags = '';
+let currentPageTags = [];
 let newPageTags = '';
 if (mainContent !== null) {
   pageId = mainContent.getAttribute('data-page-id') || null;
@@ -307,7 +307,7 @@ if (pageId) {
 if (pagePath) {
   componentMappings['page'] = <Page crowi={crowi} crowiRenderer={crowiRenderer} markdown={markdown} pagePath={pagePath} showHeadEditButton={true} onSaveWithShortcut={saveWithShortcut} />;
   componentMappings['revision-path'] = <RevisionPath pagePath={pagePath} crowi={crowi} />;
-  // componentMappings['page-tag'] = <PageTagForm pageTags={currentPageTags} submitTags={getNewPageTags} />; [pagetag]
+  // componentMappings['page-tag'] = <PageTagForm crowi={crowi} pageTags={currentPageTags} handleSubmit={getNewPageTags} />; // [pagetag]
   componentMappings['revision-url'] = <RevisionUrl pageId={pageId} pagePath={pagePath} />;
 }