Skip to content

Commit

Permalink
fix typescript issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten König committed Dec 9, 2024
1 parent 7a7f74a commit cd79d24
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/shards/IndexShards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@
const { requestState, callElasticsearch } = useElasticsearchAdapter()
const health = ref(null)
type CatIndicesArgs = {
h: string[],
s: string[],
health?: string
}
const load = async () => {
let catIndicesArgs = { h: ['index', 'health', 'pri', 'rep', 'status'], s: ['health:desc', 'index'] }
let catIndicesArgs: CatIndicesArgs = { h: ['index', 'health', 'pri', 'rep', 'status'], s: ['health:desc', 'index'] }
if (health.value) catIndicesArgs['health'] = health.value
Expand Down

0 comments on commit cd79d24

Please sign in to comment.