Skip to content

Commit

Permalink
fix: never choose 'unknown' host as default for category builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Nov 19, 2023
1 parent fcbd586 commit 819c4e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/settings/CategoryBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ export default {
this.loading = true;
if (!this.queryOptions.hostname) {
// FIXME: This is a hack to ensure that the hostname is set (otherwise isn't due to some race condition)
this.queryOptions.hostname = useBucketsStore().hosts[0];
// Don't ever return the "unknown" hostname
// TODO: ideally, only choose a hostname that has the right buckets
this.queryOptions.hostname = _.filter(
useBucketsStore().hosts,
host => host !== 'unknown'
)[0];
}
await this.categoryStore.load();
const awclient = getClient();
Expand Down

1 comment on commit 819c4e3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.