2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-20 15:20:33 +03:00

Fix: merge array if vmid is undefined

This commit is contained in:
Sébastien Chopin
2016-11-14 20:40:10 +01:00
parent 5808ab9340
commit 8f39c97128
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export default function _getMetaInfo (options = {}) {
let shared = false
for (let sourceIndex in source) {
const sourceItem = source[sourceIndex]
if (targetItem[tagIDKeyName] === sourceItem[tagIDKeyName]) {
if (targetItem[tagIDKeyName] && targetItem[tagIDKeyName] === sourceItem[tagIDKeyName]) {
shared = true
break
}