mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: Fix loadAsyncOptions usage (#25371)
Fixed `loadAsyncOptions` in the `AsyncSelect` component usage so that works
This commit is contained in:
parent
fd93764784
commit
4cf146a29d
@ -90,7 +90,7 @@ Where the async function could look like this:
|
||||
|
||||
```tsx
|
||||
const loadAsyncOptions = () => {
|
||||
return new Promise()<Array<SelectableValue<string>>>(resolve => {
|
||||
return new Promise<Array<SelectableValue<string>>>(resolve => {
|
||||
setTimeout(() => {
|
||||
resolve(options);
|
||||
}, 2000);
|
||||
|
Loading…
Reference in New Issue
Block a user