Fixes spelling error

This commit is contained in:
Alex Corey
2020-02-03 20:09:49 -05:00
parent 25105d813d
commit 5f96aee871

View File

@@ -33,7 +33,7 @@ function TemplatesList({ i18n }) {
const { id: projectId } = useParams(); const { id: projectId } = useParams();
const { pathname, search } = useLocation(); const { pathname, search } = useLocation();
const [deletionError, setDelectionError] = useState(null); const [deletionError, setDeletionError] = useState(null);
const [contentError, setContentError] = useState(null); const [contentError, setContentError] = useState(null);
const [hasContentLoading, setHasContentLoading] = useState(true); const [hasContentLoading, setHasContentLoading] = useState(true);
const [jtActions, setJTActions] = useState(null); const [jtActions, setJTActions] = useState(null);
@@ -75,7 +75,7 @@ function TemplatesList({ i18n }) {
jtOptionsPromise, jtOptionsPromise,
wfjtOptionsPromise, wfjtOptionsPromise,
]); ]);
setDelectionError(null); setDeletionError(null);
try { try {
const [ const [
@@ -133,7 +133,7 @@ function TemplatesList({ i18n }) {
); );
setCount(count - selected.length); setCount(count - selected.length);
} catch (err) { } catch (err) {
setDelectionError(err); setDeletionError(err);
} }
}; };
@@ -243,7 +243,7 @@ function TemplatesList({ i18n }) {
isOpen={deletionError} isOpen={deletionError}
variant="danger" variant="danger"
title={i18n._(t`Error!`)} title={i18n._(t`Error!`)}
onClose={() => setDelectionError(null)} onClose={() => setDeletionError(null)}
> >
{i18n._(t`Failed to delete one or more templates.`)} {i18n._(t`Failed to delete one or more templates.`)}
<ErrorDetail error={deletionError} /> <ErrorDetail error={deletionError} />