Skip to content

Commit

Permalink
fix: is_bundled now displays correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigTag committed Nov 5, 2024
1 parent c6cfe76 commit 59488de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wasm/src/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{
error::Error,
fs,
io::{self},
path::{Path, PathBuf},
path::Path,
rc::Rc,
};

Expand Down Expand Up @@ -90,7 +90,9 @@ impl<'a> Dispatcher<'a> {

let is_bundled = fs::read_dir(bundled_path).map_or(false, |mut directory| {
directory.any(|folder| {
folder.is_ok_and(|folder| generate_uuid_from_path(folder.path()).map_or(false, |x| x == uuid))
folder.is_ok_and(|folder| {
generate_uuid_from_path(folder.path().join("cycle.json")).map_or(false, |x| x == uuid)
})
})
});

Expand Down

0 comments on commit 59488de

Please sign in to comment.