Skip to content

Commit 7859212

Browse files
committed
Fix reset of protocol entries
1 parent 8ba9283 commit 7859212

File tree

1 file changed

+1
-4
lines changed
  • frontend/src/store/protocolState

1 file changed

+1
-4
lines changed

frontend/src/store/protocolState/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ export const useProtocolStore = defineStore('protocol', {
99
},
1010
actions: {
1111
updateProtocol(protocol: ProtocolJson) {
12-
const entries = protocol.entry
13-
if (!entries) {
14-
return
15-
}
12+
const entries = protocol.entry || []
1613
if (protocol.delta) {
1714
entries.reverse()
1815
for (const entry of entries) {

0 commit comments

Comments
 (0)