key markdown editors (#7644)

This commit is contained in:
Jack Kavanagh 2024-07-02 16:13:05 +02:00 committed by GitHub
parent a4de53443f
commit b41826e881
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,7 @@ export const WorkspaceSettingsModal = ({ workspace, mockServer, onClose }: Props
Description Description
</Label> </Label>
<MarkdownEditor <MarkdownEditor
key={workspace._id}
placeholder="Write a description" placeholder="Write a description"
defaultValue={workspace.description} defaultValue={workspace.description}
onChange={(description: string) => { onChange={(description: string) => {

View File

@ -188,6 +188,7 @@ export const RequestGroupPane: FC<{ settings: Settings }> = ({ settings }) => {
</TabPanel> </TabPanel>
<TabPanel className='w-full flex-1 overflow-y-auto' id='docs'> <TabPanel className='w-full flex-1 overflow-y-auto' id='docs'>
<MarkdownEditor <MarkdownEditor
key={uniqueKey}
className="margin-top" className="margin-top"
placeholder="Write a description" placeholder="Write a description"
defaultValue={activeRequestGroup.description} defaultValue={activeRequestGroup.description}

View File

@ -365,6 +365,7 @@ export const RequestPane: FC<Props> = ({
</TabPanel> </TabPanel>
<TabPanel className='w-full flex-1 overflow-y-auto' id='docs'> <TabPanel className='w-full flex-1 overflow-y-auto' id='docs'>
<MarkdownEditor <MarkdownEditor
key={uniqueKey}
placeholder="Write a description" placeholder="Write a description"
defaultValue={activeRequest.description} defaultValue={activeRequest.description}
onChange={(description: string) => patchRequest(requestId, { description })} onChange={(description: string) => patchRequest(requestId, { description })}

View File

@ -474,6 +474,7 @@ export const WebSocketRequestPane: FC<Props> = ({ environment }) => {
</TabPanel> </TabPanel>
<TabPanel className='w-full flex-1 overflow-y-auto' id='docs'> <TabPanel className='w-full flex-1 overflow-y-auto' id='docs'>
<MarkdownEditor <MarkdownEditor
key={uniqueKey}
placeholder="Write a description" placeholder="Write a description"
defaultValue={activeRequest.description} defaultValue={activeRequest.description}
onChange={(description: string) => patchRequest(requestId, { description })} onChange={(description: string) => patchRequest(requestId, { description })}