Since copy status 0 means 'Available', test for null
explicitly.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
hold.current_copy(hold_data.copy);
// likewise, current_copy's status isn't fleshed in the API
- if(hold.current_copy().status() && typeof hold.current_copy().status() != 'object')
+ if(hold.current_copy().status() !== null &&
+ typeof hold.current_copy().status() != 'object')
egCore.pcrud.retrieve('ccs',hold.current_copy().status()
).then(function(c) { hold.current_copy().status(c) });
}