Skip to content

Commit

Permalink
type error
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Aug 8, 2024
1 parent 9bfdc8e commit 0e76970
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ export module State {
.catch(() => ({}));
console.log("found previous", previousKey);
}
if (!previousState) previousState = {};
if (!previousState)
previousState = {
resources: [],
};
if (!previousState.resources) previousState.resources = [];

const resources = Object.fromEntries(
Expand Down

0 comments on commit 0e76970

Please sign in to comment.