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:
parent
a9d1750a4e
commit
03ddd07ed8
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user