Browse Source

fix: file content not refreshed

close #5484
Tienson Qin 3 years ago
parent
commit
f70b7a664d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/file.cljs

+ 2 - 1
src/main/frontend/components/file.cljs

@@ -74,7 +74,8 @@
         format (gp-util/get-format path)
         original-name (db/get-file-page path)
         random-id (str (d/squuid))]
-    [:div.file {:id (str "file-edit-wrapper-" random-id)}
+    [:div.file {:id (str "file-edit-wrapper-" random-id)
+                :key path}
      [:h1.title
       [:bdi (js/decodeURI path)]]
      (when original-name