Skip to content

Commit

Permalink
feat: urgent fix for instagram
Browse files Browse the repository at this point in the history
  • Loading branch information
nevo-david committed Dec 11, 2024
1 parent 8966bf9 commit 4d926ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const InstagramCollaborators: FC<{ values?: any }> = (props) => {
{postCurrentType !== 'story' && (
<InstagramCollaboratorsTags
label="Collaborators (max 3) - accounts can't be private"
{...register('collaborators')}
{...register('collaborators', {
value: []
})}
/>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Type } from 'class-transformer';
import { IsArray, IsDefined, IsIn, IsString, ValidateNested } from 'class-validator';
import { IsArray, IsDefined, IsIn, IsString, ValidateNested, IsOptional } from 'class-validator';

export class Collaborators {
@IsDefined()
Expand All @@ -14,5 +14,6 @@ export class InstagramDto {
@Type(() => Collaborators)
@ValidateNested({ each: true })
@IsArray()
@IsOptional()
collaborators: Collaborators[];
}

0 comments on commit 4d926ed

Please sign in to comment.