From 4cf146a29d00e72b49c473a2cfebd0fca09a644d Mon Sep 17 00:00:00 2001 From: James Wang <36892657+cn-wx@users.noreply.github.com> Date: Fri, 5 Jun 2020 15:40:43 +0800 Subject: [PATCH] Docs: Fix loadAsyncOptions usage (#25371) Fixed `loadAsyncOptions` in the `AsyncSelect` component usage so that works --- packages/grafana-ui/src/components/Select/Select.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/Select/Select.mdx b/packages/grafana-ui/src/components/Select/Select.mdx index 5e202393f8d..89ab9153680 100644 --- a/packages/grafana-ui/src/components/Select/Select.mdx +++ b/packages/grafana-ui/src/components/Select/Select.mdx @@ -90,7 +90,7 @@ Where the async function could look like this: ```tsx const loadAsyncOptions = () => { - return new Promise()>>(resolve => { + return new Promise>>(resolve => { setTimeout(() => { resolve(options); }, 2000);