Parcourir la source

fixed thread creation

Skylsmoi il y a 5 ans
Parent
révision
01cb4cc702
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      frontend_app_thread/src/container/PopupCreateThread.jsx

+ 2 - 2
frontend_app_thread/src/container/PopupCreateThread.jsx Voir le fichier

88
   })
88
   })
89
 
89
 
90
   handleValidate = async () => {
90
   handleValidate = async () => {
91
-    const { config, appName, idWorkspace, idFolder, newContentName } = this.state
91
+    const { loggedUser, config, appName, idWorkspace, idFolder, newContentName } = this.state
92
 
92
 
93
-    const fetchSaveThreadDoc = postThreadContent(config.apiUrl, idWorkspace, idFolder, config.slug, newContentName)
93
+    const fetchSaveThreadDoc = postThreadContent(loggedUser, config.apiUrl, idWorkspace, idFolder, config.slug, newContentName)
94
 
94
 
95
     handleFetchResult(await fetchSaveThreadDoc)
95
     handleFetchResult(await fetchSaveThreadDoc)
96
       .then(resSave => {
96
       .then(resSave => {