Skip to content

Commit b6151d4

Browse files
authored
fix(spec): assure operation is an immutable map in operations selectors (#10454)
1 parent 2f0cbba commit b6151d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)