1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-29 07:54:19 +00:00

🌐 Revert error translation

This commit is contained in:
Steffo 2021-05-18 15:16:43 +02:00
parent 79427d6b96
commit ab538e6b2b
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -8,7 +8,7 @@ import ContextRepositoryEditor from "../contexts/ContextRepositoryEditor"
export default function useRepositoryEditor() { export default function useRepositoryEditor() {
const context = useContext(ContextRepositoryEditor) const context = useContext(ContextRepositoryEditor)
if(!context) { if(!context) {
throw new Error("Questo componente deve essere messo in un RepositoryEditor.") throw new Error("This component must be placed inside a RepositoryEditor.")
} }
return context return context
} }