2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 10:35:40 +00:00

Prove that coverage does not work

This commit is contained in:
wolflu05
2024-09-26 09:04:39 +02:00
parent 93ae09c3a9
commit 920c58ea6f

View File

@ -33,6 +33,8 @@ export const getPluginTemplateEditor = (
const setCodeRef = useRef<(code: string) => void>();
const getCodeRef = useRef<() => string>();
throw new Error('I was definitely being called!');
useImperativeHandle(ref, () => ({
setCode: (code) => {
// if the editor is not yet initialized, store the initial code in a ref to set it later