Forgot some PouchORM property changes

This commit is contained in:
Timothy Farrell 2018-05-23 05:12:54 -05:00
parent fad4db8a40
commit ca6dfb8891
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ export function SectionView(vm, params, key) {
onmouseenter: [patchRefStyle, sectionSelectButtonRef, 'opacity: 0.7;'],
onmouseleave: [patchRefStyle, sectionSelectButtonRef, 'opacity: 0;'],
_data: {
type: 'section',
$$type: 'section',
sectionImageIds: photos.map(extractID)
}
},

View File

@ -54,7 +54,7 @@ export function changeElementStateMap(refStateMap, evt, node, vm) {
export function nodeParentWithType(node, type) {
let parentNode = node;
while (parentNode && (!parentNode.data || parentNode.data.type !== type)) {
while (parentNode && (!parentNode.data || parentNode.data.$$type !== type)) {
parentNode = parentNode.parent;
}
if (!parentNode) {