Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: icon url

nathan69d3181a6447
diff --git a/frontend/rust-lib/flowy-user-deps/src/entities.rs b/frontend/rust-lib/flowy-user-deps/src/entities.rs
index 169f603d54..f82a9d1030 100644
--- a/frontend/rust-lib/flowy-user-deps/src/entities.rs
+++ b/frontend/rust-lib/flowy-user-deps/src/entities.rs
@@ -216,13 +216,13 @@ where
.map(|m| {
(
m.get(USER_METADATA_ICON_URL)
- .map(|v| v.to_string())
+ .map(|v| v.as_str().map(|s| s.to_string()).unwrap_or_default())
.unwrap_or_default(),
m.get(USER_METADATA_OPEN_AI_KEY)
- .map(|v| v.to_string())
+ .map(|v| v.as_str().map(|s| s.to_string()).unwrap_or_default())
.unwrap_or_default(),
m.get(USER_METADATA_STABILITY_AI_KEY)
- .map(|v| v.to_string())
+ .map(|v| v.as_str().map(|s| s.to_string()).unwrap_or_default())
.unwrap_or_default(),
)
})