Skip to content

TypeError: templateInstance.collection.findOne is not a function #8

Description

@jdmswong

Same problem as: SortableJS/Sortable#768

My manifestation of the problem:
screen shot 2016-04-04 at 11 17 41 am

caused by dragging and reordering an image

My code:
in template

                    {{#sortable items=images}}
                        <img class="gallery-img thumbnail" src="{{this.fname}}">
                    {{/sortable}}

in helper

        return GalleryPhotos.find(
            {
                'gallery_id': myId
            },
            {
                sort: ['order']
            }
        ).fetch();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions