Skip to content

Commit

Permalink
key markdown editors (#7644)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkav authored Jul 2, 2024
1 parent a4de534 commit b41826e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const WorkspaceSettingsModal = ({ workspace, mockServer, onClose }: Props
Description
</Label>
<MarkdownEditor
key={workspace._id}
placeholder="Write a description"
defaultValue={workspace.description}
onChange={(description: string) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const RequestGroupPane: FC<{ settings: Settings }> = ({ settings }) => {
</TabPanel>
<TabPanel className='w-full flex-1 overflow-y-auto' id='docs'>
<MarkdownEditor
key={uniqueKey}
className="margin-top"
placeholder="Write a description"
defaultValue={activeRequestGroup.description}
Expand Down
1 change: 1 addition & 0 deletions packages/insomnia/src/ui/components/panes/request-pane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ export const RequestPane: FC<Props> = ({
</TabPanel>
<TabPanel className='w-full flex-1 overflow-y-auto' id='docs'>
<MarkdownEditor
key={uniqueKey}
placeholder="Write a description"
defaultValue={activeRequest.description}
onChange={(description: string) => patchRequest(requestId, { description })}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ export const WebSocketRequestPane: FC<Props> = ({ environment }) => {
</TabPanel>
<TabPanel className='w-full flex-1 overflow-y-auto' id='docs'>
<MarkdownEditor
key={uniqueKey}
placeholder="Write a description"
defaultValue={activeRequest.description}
onChange={(description: string) => patchRequest(requestId, { description })}
Expand Down

0 comments on commit b41826e

Please sign in to comment.