(state: Collection[], id: number)
| 453 | } |
| 454 | |
| 455 | function toggleOpenCollection(state: Collection[], id: number): Collection[] { |
| 456 | return modifyCollection(state, id, (c) => { |
| 457 | c.open = !c.open; |
| 458 | }); |
| 459 | } |
| 460 | |
| 461 | function setEnvVar(state: Collection[], payload: SetEnvVarPayload): Collection[] { |
| 462 | return modifyCollection(state, payload.collectionId, (c) => { |
no test coverage detected