Skip to content

Commit

Permalink
chore: Fix test page and flaky test (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
jperals authored Sep 22, 2023
1 parent c3fe8ad commit 0c7d031
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/dropdown/width.page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import React, { useContext, useEffect, useState } from 'react';
import React, { useContext, useState } from 'react';
import Select, { SelectProps } from '~components/select';
import Multiselect, { MultiselectProps } from '~components/multiselect';
import Autosuggest from '~components/autosuggest';
Expand Down Expand Up @@ -213,8 +213,7 @@ export default function () {
setTimeout(() => setLoading(false), 500);
}
};
const onClose = () => setLoading(false);
useEffect(onOpen, [asyncLoading]);
const onClose = () => setLoading(asyncLoading);
return (
<article>
<h1>Dropdown width</h1>
Expand Down

0 comments on commit 0c7d031

Please sign in to comment.