Commit 7744f4f7 authored by Jean-Philippe Steinmetz's avatar Jean-Philippe Steinmetz
Browse files

Fixing issue that caused objects that could not be found to return as empty instances.

parent c527b13a
......@@ -181,7 +181,7 @@ abstract class ModelRoute<T extends BaseEntity | SimpleEntity> {
// Make sure we return the correct data type
return new this.modelClass(existing);
return existing ? new this.modelClass(existing) : undefined;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment