mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 17:38:59 +08:00
chore: error state is updated
This commit is contained in:
parent
070d32a0ef
commit
3603e497a6
@ -35,7 +35,11 @@ function EditRules(): JSX.Element {
|
|||||||
}
|
}
|
||||||
}, [isValidRuleId, ruleId]);
|
}, [isValidRuleId, ruleId]);
|
||||||
|
|
||||||
if ((isError && !isValidRuleId) || ruleId == null) {
|
if (
|
||||||
|
(isError && !isValidRuleId) ||
|
||||||
|
ruleId == null ||
|
||||||
|
(data?.payload?.data === undefined && !isLoading)
|
||||||
|
) {
|
||||||
return <div>{data?.error || t('something_went_wrong')}</div>;
|
return <div>{data?.error || t('something_went_wrong')}</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user