We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce73c9 commit 4aeebfaCopy full SHA for 4aeebfa
src/context/project.rs
@@ -175,8 +175,12 @@ impl Project {
175
.await
176
.ok()
177
.and_then(|s| {
178
- let map: HashMap<String, serde_json::Value> = serde_json::from_str(&s).ok()?;
179
- if map.contains_key("publicComponents") || map.contains_key("pages") || map.contains_key("main") {
+ let map: HashMap<String, serde_json::Value> =
+ serde_json::from_str(&s).ok()?;
180
+ if map.contains_key("publicComponents")
181
+ || map.contains_key("pages")
182
+ || map.contains_key("main")
183
+ {
184
serde_json::from_str(&s).ok()
185
} else {
186
None
0 commit comments