Skip to content

Commit 0b9e158

Browse files
authored
fix: panic caused by an unwrap() (#526)
1 parent 688ced3 commit 0b9e158

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/src/server/datasource.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub async fn datasource_search(
107107
"size": size,
108108
});
109109

110-
if let Some(q) = options.unwrap().query {
110+
if let Some(q) = options.and_then(|get_data_source_options| get_data_source_options.query ) {
111111
body["query"] = q;
112112
}
113113

0 commit comments

Comments
 (0)