[frontend] Fix popular joins in the local optimizer strategy
@@ -70,6 +70,9 @@ export default class LocalStrategy extends BaseStrategy {
namespace: { id: 'default' }
})
.then(entry => {
+ entry
+ .getSourceMeta({ silenceErrors: true })
+ .then(() => {
if (!entry.sourceMeta) {
entry.sourceMeta = { foreign_keys: [] };
}
@@ -83,7 +86,11 @@ export default class LocalStrategy extends BaseStrategy {
}))
};
deferred.resolve(data);
- });
+ })
+ .fail(deferred.reject);
+ })
+ .fail(deferred.reject);
+
return deferred.promise();
}
}
