Skip to content

Commit ec35cec

Browse files
glowcloudkirill-of-turov
authored andcommitted
fix(spec): assure operation is an immutable map in operations selectors (swagger-api#10454)
1 parent 3d188e0 commit ec35cec

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/plugins/spec/selectors.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ export const operationsWithRootInherited = createSelector(
209209
],
210210
(operations, consumes, produces) => {
211211
return operations.map( ops => ops.update("operation", op => {
212-
if(op) {
213-
if(!Map.isMap(op)) { return }
212+
if (Map.isMap(op)) {
214213
return op.withMutations( op => {
215214
if ( !op.get("consumes") ) {
216215
op.update("consumes", a => Set(a).merge(consumes))

0 commit comments

Comments
 (0)