mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
refac
This commit is contained in:
@@ -31,11 +31,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateValue = () => {
|
const updateValue = () => {
|
||||||
_value = value;
|
if (_value !== value) {
|
||||||
if (codeEditor) {
|
_value = value;
|
||||||
codeEditor.dispatch({
|
if (codeEditor) {
|
||||||
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }]
|
codeEditor.dispatch({
|
||||||
});
|
changes: [{ from: 0, to: codeEditor.state.doc.length, insert: _value }]
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user