Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

DTInstances.getList() giving "cannot get property then of undefined" error #198

@Sawtaytoes

Description

@Sawtaytoes

When I do DTInstances.getList() or DTInstances.getList().then(function(){}), I always get the error that it cannot get .then of undefined. .getLast().then(function(){}) does function properly.

DTInstances.getList() seems to have a bug in 0.4.0 where it is referencing _dtInstances (null) which is never set to anything.

You probably want this at line 457:

if (!_dtInstances) {
    _deferDTInstances = $q.defer();
    _dtInstances = _deferDTInstances.promise;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions