fix(storybook): adjust flash installer on mount

It needs to handle possible missing state in the store on mount.
This commit is contained in:
Brian McGee
2025-09-30 12:36:43 +01:00
parent 1df329fe0d
commit 9626e22db7

View File

@@ -304,11 +304,10 @@ const FlashProgress = () => {
const [store, set] = getStepStore<InstallStoreType>(stepSignal);
onMount(async () => {
const result = await store.flash.progress.result;
if (result.status == "success") {
console.log("Flashing Success");
const result = await store.flash?.progress?.result;
if (result?.status == "success") {
stepSignal.next();
}
stepSignal.next();
});
const handleCancel = async () => {