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) {
|
||||
return getSlugErrorHelperText();
|
||||
return getSlugErrorText();
|
||||
}
|
||||
|
||||
return "";
|
||||
};
|
||||
|
||||
const getSlugErrorHelperText = () => {
|
||||
const getSlugErrorText = () => {
|
||||
const error = getError(SeoField.slug);
|
||||
const { __typename: type } = error;
|
||||
|
||||
|
|
Loading…
Reference in a new issue