Fix field setup not generating m2o field

This commit is contained in:
rijkvanzanten
2020-10-13 18:03:00 -04:00
parent 42a7a00f6e
commit e6d36f48e3

View File

@@ -700,7 +700,7 @@ function initLocalStore(
}
function fieldExists(collection: string, field: string) {
return collectionExists(collection) && fieldsStore.getField(collection, field) !== null;
return collectionExists(collection) && !!fieldsStore.getField(collection, field);
}
}