fix: 🐛 handle missing host_ids array in host sets

This commit is contained in:
Randall Morey committed 2020-09-12 11:20:38 -04:00
1 parent 7d5bef4440
commit 048e202343
3 files changed
+39 -2

No files matched your search

+4 -1
View File
@@ -9,7 +9,10 @@ export default class HostSetModel extends GeneratedHostSetModel {
* Grants is read-only _most_ under normal circumstances. But grants can
* be persisted via a dedicated call to `saveGrants()`.
*/
@fragmentArray('fragment-string', {readOnly: true}) host_ids;
@fragmentArray('fragment-string', {
readOnly: true,
emptyArrayIfMissing: true
}) host_ids;
// =methods