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:
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() {
|
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
|
||||||
}
|
}
|
Loading…
Reference in a new issue