Skip to content

Commit

Permalink
fix(yaml): update before open modal (#114)
Browse files Browse the repository at this point in the history
Co-authored-by: Romain Dreidemy <[email protected]>
  • Loading branch information
Thomasevano and RomainDreidemy authored Sep 11, 2023
1 parent a060c91 commit a5f1bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion front/src/views/organisms/ComposeFileModal.organism.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface ComposeFileModalOrganismProps {
const ComposeFileModalOrganism = ({ toggle, composeFileData }: ComposeFileModalOrganismProps): ReactElement => {
return (
<ModalOrganism toggle={toggle}>
<textarea className="h-96 w-full" readOnly defaultValue={composeFileData} />
<textarea className="h-96 w-full" readOnly value={composeFileData} />
</ModalOrganism>
)
}
Expand Down
2 changes: 1 addition & 1 deletion front/src/views/organisms/Manager.organism.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ const ManagerOrganism = ({ stackId }: { stackId: string }): JSX.Element => {
}

const generateYaml = async (): Promise<void> => {
openModal()
try {
const { data: yaml } = await BoardEntity.generateComposeFile(stackId)
setComposeFileData(yaml)
openModal()
} catch (e: any) {
console.log(e)
}
Expand Down

0 comments on commit a5f1bad

Please sign in to comment.