1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: no results on playground error (#4170)

This commit is contained in:
Mateusz Kwasniewski 2023-07-06 19:14:32 +02:00 committed by GitHub
parent a9d1750a4e
commit 03ddd07ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ export const AdvancedPlayground: VFC<{
const { setToastData } = useToast();
const [searchParams, setSearchParams] = useSearchParams();
const searchParamsLength = Array.from(searchParams.entries()).length;
const { evaluateAdvancedPlayground, loading } = usePlaygroundApi();
const { evaluateAdvancedPlayground, loading, errors } = usePlaygroundApi();
const [hasFormBeenSubmitted, setHasFormBeenSubmitted] = useState(false);
useEffect(() => {
@ -275,7 +275,10 @@ export const AdvancedPlayground: VFC<{
elseShow={
<>
<ConditionallyRender
condition={Boolean(results)}
condition={
Boolean(results) &&
Object.values(errors).length === 0
}
show={
<AdvancedPlaygroundResultsTable
loading={loading}