Skip to content

Commit 061cf9a

Browse files
committed
do not relink _categories
1 parent 4d383f2 commit 061cf9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/relink_private.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ module.exports = function relinkPrivateKeys(toContainer, fromContainer) {
2424
var fromVal = fromContainer[k];
2525
var toVal = toContainer[k];
2626

27-
if(toVal === fromVal) {
28-
continue;
29-
}
27+
if(toVal === fromVal) continue;
28+
if(k !== '_categories' && toContainer.matches) continue;
29+
3030
if(k.charAt(0) === '_' || typeof fromVal === 'function') {
3131
// if it already exists at this point, it's something
3232
// that we recreate each time around, so ignore it

0 commit comments

Comments
 (0)