mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
🌐 Revert error translation
This commit is contained in:
parent
79427d6b96
commit
ab538e6b2b
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ import ContextRepositoryEditor from "../contexts/ContextRepositoryEditor"
|
|||
export default function useRepositoryEditor() {
|
||||
const context = useContext(ContextRepositoryEditor)
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue