We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcbd586 commit 819c4e3Copy full SHA for 819c4e3
src/views/settings/CategoryBuilder.vue
@@ -192,7 +192,12 @@ export default {
192
this.loading = true;
193
if (!this.queryOptions.hostname) {
194
// FIXME: This is a hack to ensure that the hostname is set (otherwise isn't due to some race condition)
195
- this.queryOptions.hostname = useBucketsStore().hosts[0];
+ // Don't ever return the "unknown" hostname
196
+ // TODO: ideally, only choose a hostname that has the right buckets
197
+ this.queryOptions.hostname = _.filter(
198
+ useBucketsStore().hosts,
199
+ host => host !== 'unknown'
200
+ )[0];
201
}
202
await this.categoryStore.load();
203
const awclient = getClient();
0 commit comments