refactor: let state use either local or backend
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-12 15:54:03 +02:00
parent 9cb3296cec
commit 2d63d3ad4c
6 changed files with 68 additions and 20 deletions

View File

@@ -114,7 +114,7 @@ impl<'a> GraphExplorer<'a> {
.map(|p| p.split('.').collect::<Vec<_>>())
.unwrap_or_default(),
)
.await
.await?
.ok_or(anyhow::anyhow!("graph should've had an item"))?;
self.inner.graph = Some(graph);