Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Birloi Florian authored and Birloi Florian committed Jan 19, 2024
2 parents aefd0ca + 3f1c32e commit 4405de8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ export class ApplicationService {
id,
...updateApplicationDto,
steps: updateApplicationDto.steps || null,
videoLink: updateApplicationDto.videoLink || null,
};

// 2. handle logo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const ApplicationDetails = () => {
const link = (application.videoLink as string).replace('https://', '').replace('http://', '');
console.log(`https://${link}`);
setYoutubeLink(`https://${link}`);
} else {
setYoutubeLink('');
}
}, [application]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ const ApplicationForm = ({
error: errors.videoLink?.message,
defaultValue: value,
onChange: onChange,
onBlur: onChange,
id: 'application-form__video-link',
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const EditApplication = () => {
const onSubmit = async (data: Partial<CreateApplicationDto>) => {
// don't set the logo path
const { logo, ...payload } = data;

await updateApplication(
{
applicationId: id as string,
Expand Down

0 comments on commit 4405de8

Please sign in to comment.