Browse Source

Merge pull request #1909 from weseek/hotfix/fix-user-image-2

Hotfix/fix user image 2
Yuki Takei 6 years ago
parent
commit
61c5416585
3 changed files with 9 additions and 2 deletions
  1. 5 1
      CHANGES.md
  2. 1 1
      package.json
  3. 3 0
      src/client/js/services/PersonalContainer.js

+ 5 - 1
CHANGES.md

@@ -1,9 +1,13 @@
 # CHANGES
 
-## v3.7.4-RC
+## v3.7.5
 
 *
 
+## v3.7.4
+
+* Fix: Broken by displaying user image
+
 ## v3.7.3
 
 * Feature: Profile Image Cropping

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "growi",
-  "version": "3.7.3-RC",
+  "version": "3.7.4-RC",
   "description": "Team collaboration software using markdown",
   "tags": [
     "wiki",

+ 3 - 0
src/client/js/services/PersonalContainer.js

@@ -70,6 +70,9 @@ export default class PersonalContainer extends Container {
    * define a function for uploaded picture
    */
   getUploadedPictureSrc(user) {
+    if (user == null) {
+      return DEFAULT_IMAGE;
+    }
     if (user.image) {
       this.setState({ isUploadedPicture: true });
       return user.image;