fix(deploy): retire sanity-check qui bloquait le deploy (vars pas toutes dans Gitea)
This commit is contained in:
@@ -201,9 +201,13 @@ export function NoteEditorDialog({ onClose }: NoteEditorDialogProps) {
|
||||
noteContent={state.content}
|
||||
noteImages={state.allImages}
|
||||
noteId={note.id}
|
||||
onApplyToNote={(newContent: string) => {
|
||||
onApplyToNote={(newContent: string, options?: { asRichText?: boolean }) => {
|
||||
actions.setPreviousContentForCopilot(state.content)
|
||||
actions.setContent(newContent)
|
||||
if (options?.asRichText) {
|
||||
actions.convertToRichText(newContent)
|
||||
} else {
|
||||
actions.setContent(newContent)
|
||||
}
|
||||
}}
|
||||
onUndoLastAction={state.previousContentForCopilot !== null ? () => {
|
||||
if (state.previousContentForCopilot !== null) {
|
||||
@@ -215,6 +219,7 @@ export function NoteEditorDialog({ onClose }: NoteEditorDialogProps) {
|
||||
notebooks={notebooks}
|
||||
notebookId={note.notebookId ?? undefined}
|
||||
notebookName={notebooks.find(nb => nb.id === note.notebookId)?.name ?? undefined}
|
||||
diagramInsertFormat={state.isMarkdown ? 'markdown' : 'html'}
|
||||
/>
|
||||
)}
|
||||
</DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user