|
|
|
@ -16,7 +16,7 @@ const useSnippetStore = create(devtools((set, get) => ({
|
|
|
|
|
title: '',
|
|
|
|
|
owner: '',
|
|
|
|
|
category: '',
|
|
|
|
|
content: {html: ''}
|
|
|
|
|
content: '',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
openDrawer: () => {
|
|
|
|
@ -86,7 +86,7 @@ const useSnippetStore = create(devtools((set, get) => ({
|
|
|
|
|
title: snippet.adi_title,
|
|
|
|
|
owner: snippet.adi_owner,
|
|
|
|
|
category: snippet.adi_type,
|
|
|
|
|
content: { html: detail.adi_content}
|
|
|
|
|
content: detail.adi_content,
|
|
|
|
|
}
|
|
|
|
|
}))
|
|
|
|
|
return content
|
|
|
|
@ -115,7 +115,7 @@ const useSnippetStore = create(devtools((set, get) => ({
|
|
|
|
|
title: formValues.title,
|
|
|
|
|
owner: formValues.owner,
|
|
|
|
|
category: formValues.category,
|
|
|
|
|
content: { html: formValues.content.htmlContent }
|
|
|
|
|
content: formValues.content.htmlContent,
|
|
|
|
|
}
|
|
|
|
|
}))
|
|
|
|
|
} else {
|
|
|
|
|