Fix the annoying sections not updating on import bug.
This commit is contained in:
parent
332a9fa9a6
commit
636da23a20
@ -63,6 +63,9 @@ export function SectionView(vm, params, key) {
|
|||||||
photos.sort((a, b) => a.originalDate.localeCompare(b.originalDate));
|
photos.sort((a, b) => a.originalDate.localeCompare(b.originalDate));
|
||||||
|
|
||||||
subscribeToRender(vm, [sections]);
|
subscribeToRender(vm, [sections]);
|
||||||
|
vm.config({
|
||||||
|
hooks: { willUpdate: (vm, { photos }) => photoArray.splice(0, photoArray.length, ...photos) }
|
||||||
|
});
|
||||||
|
|
||||||
return function render(vm, params) {
|
return function render(vm, params) {
|
||||||
const { selectedIds, selectMode, hover, hoverSelectButton } = params;
|
const { selectedIds, selectMode, hover, hoverSelectButton } = params;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user