🐛 Fix package attributes readout

This commit is contained in:
Manuel
2023-02-04 20:48:55 +01:00
parent 1569a01b27
commit e27aa51b4d
5 changed files with 73 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ interface PackageAttributesState {
}
export const usePackageAttributesStore = create<PackageAttributesState>((set) => ({
attributes: { packageVersion: undefined, environment: 'test' },
attributes: { packageVersion: undefined, environment: 'test', dependencies: {} },
setInitialPackageAttributes(attributes) {
set((state) => ({ ...state, attributes }));
},