refactor
This commit is contained in:
parent
2519ed9496
commit
c0d02d6943
1 changed files with 2 additions and 2 deletions
|
@ -145,13 +145,13 @@ const SeoForm: React.FC<SeoFormProps> = props => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
return getSlugErrorHelperText();
|
return getSlugErrorText();
|
||||||
}
|
}
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
};
|
};
|
||||||
|
|
||||||
const getSlugErrorHelperText = () => {
|
const getSlugErrorText = () => {
|
||||||
const error = getError(SeoField.slug);
|
const error = getError(SeoField.slug);
|
||||||
const { __typename: type } = error;
|
const { __typename: type } = error;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue