fix: codeblock
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run

This commit is contained in:
Timothy Jaeryang Baek 2025-02-23 21:39:34 -08:00
parent 7a63947b94
commit 802f8809dd
3 changed files with 7 additions and 7 deletions

View File

@ -464,8 +464,8 @@
onSave={() => {
saveCode();
}}
onChange={(e) => {
_code = e;
onChange={(value) => {
_code = value;
}}
/>
</div>

View File

@ -88,14 +88,14 @@
code={token?.text ?? ''}
{attributes}
{save}
onCode={(e) => {
dispatch('code', e);
onCode={(value) => {
dispatch('code', value);
}}
onSave={(e) => {
dispatch('update', {
raw: token.raw,
oldContent: token.text,
newContent: e
newContent: value
});
}}
/>

View File

@ -79,7 +79,7 @@
});
_value = formattedCode;
onChange({ value: _value });
onChange(_value);
await tick();
toast.success($i18n.t('Code formatted successfully'));
@ -98,7 +98,7 @@
EditorView.updateListener.of((e) => {
if (e.docChanged) {
_value = e.state.doc.toString();
onChange({ value: _value });
onChange(_value);
}
}),
editorTheme.of([]),