Skip to content

Commit 7868944

Browse files
committed
fix(device): Include name and source attribute when Diff mode is on; close #35
1 parent a15e6b0 commit 7868944

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

device-types.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,12 @@ const diffDecoratorFactory = (anotherDecorator) => {
315315
return decoratedState
316316
}
317317

318-
const attribsToKeep = ['directive', ...directiveToAttributesMap[directive]]
318+
const attribsToKeep = [
319+
'directive',
320+
'name',
321+
'source',
322+
...directiveToAttributesMap[directive],
323+
]
319324

320325
return attribsToKeep.reduce((acc, attrib) => {
321326
acc[attrib] = decoratedState[attrib]

0 commit comments

Comments
 (0)