Skip to content

Commit 5184122

Browse files
update retain dashboard logic
1 parent 8caf261 commit 5184122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/users/dashboards.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl Dashboards {
242242
self.0
243243
.write()
244244
.await
245-
.retain(|d| d.dashboard_id.map_or(true, |id| id != dashboard_id));
245+
.retain(|d| d.dashboard_id != Some(dashboard_id));
246246

247247
Ok(())
248248
}

0 commit comments

Comments
 (0)