Skip to content

Commit 56c4d4e

Browse files
AnwarElboGuillaume Chau
authored and
Guillaume Chau
committed
#827: Show 0 as a valid key in the component tree
1 parent 8588154 commit 56c4d4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/devtools/views/components/ComponentInstance.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default {
146146
},
147147
148148
componentHasKey () {
149-
return !!this.instance.renderKey && this.instance.renderKey !== UNDEFINED
149+
return (this.instance.renderKey === 0 || !!this.instance.renderKey) && this.instance.renderKey !== UNDEFINED
150150
}
151151
},
152152

0 commit comments

Comments
 (0)