Skip to content

Commit

Permalink
Fix preform page. Add multi-session workflow to show other pages
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Jun 5, 2024
1 parent 518dd96 commit 4f3056f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/electron/frontend/core/progress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const getAll = (progressFiles) => {
return progressFiles.map((progressFile) => {
let progressFilePath = joinPath(guidedProgressFilePath, progressFile);
return transformProgressFile(
JSON.parse(fs ? fs.readFileSync(progressFilePath) : localStorage.getItem(progressFilePath))
JSON.parse(fs ? fs.readFileSync(progressFilePath) : localStorage.getItem(progressFile))
);
});
};
Expand Down
2 changes: 1 addition & 1 deletion stories/pages/Preform.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export default {

export const Default = PageTemplate.bind({});
Default.args = {
activePage: "//worklflow",
activePage: "//workflow",
globalState,
};
6 changes: 6 additions & 0 deletions stories/pages/storyStates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ export const globalState = {
Subject: {
species: "Mus musculus",
},
workflow: {
multiple_sessions: true,
locate_data: true,
base_directory: "path/to/data",
upload_to_dandi: true,
}
},
structure: {
results: {},
Expand Down

0 comments on commit 4f3056f

Please sign in to comment.