Skip to content

Commit

Permalink
fix(schema): add boolean data type
Browse files Browse the repository at this point in the history
  • Loading branch information
saithsab877 committed Oct 2, 2024
1 parent 7c94f52 commit d26cfe2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/AddItemModal/SourceTypeStep/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export const OptionTypes: TOption[] = [
label: 'string',
value: 'string',
},
{
label: 'boolean',
value: 'boolean',
},
]

export const OPTIONS: TOption[] = [
Expand Down
2 changes: 1 addition & 1 deletion src/network/fetchSourcesData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export interface Schema {
media_url?: string
image_url?: string
source_link?: string
attributes?: { [key: string]: string }
attributes?: { [key: string]: string | boolean }
}

export interface SchemaLink {
Expand Down

0 comments on commit d26cfe2

Please sign in to comment.