소스 검색

fix: locale data deserializere error

appflowy 3 년 전
부모
커밋
a6f675c1d9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      shared-lib/flowy-user-data-model/src/entities/user_setting.rs

+ 1 - 0
shared-lib/flowy-user-data-model/src/entities/user_setting.rs

@@ -16,6 +16,7 @@ pub struct AppearanceSettings {
     pub theme: String,
 
     #[pb(index = 2)]
+    #[serde(default)]
     pub locale: LocaleSettings,
 
     #[pb(index = 3)]