From d26cfe2937575dd112bc13b4debebdd003b19148 Mon Sep 17 00:00:00 2001 From: saithsab877 Date: Wed, 2 Oct 2024 16:32:02 +0500 Subject: [PATCH] fix(schema): add boolean data type --- src/components/AddItemModal/SourceTypeStep/constants.ts | 4 ++++ src/network/fetchSourcesData/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/AddItemModal/SourceTypeStep/constants.ts b/src/components/AddItemModal/SourceTypeStep/constants.ts index 1e9046154..56c9c680f 100644 --- a/src/components/AddItemModal/SourceTypeStep/constants.ts +++ b/src/components/AddItemModal/SourceTypeStep/constants.ts @@ -25,6 +25,10 @@ export const OptionTypes: TOption[] = [ label: 'string', value: 'string', }, + { + label: 'boolean', + value: 'boolean', + }, ] export const OPTIONS: TOption[] = [ diff --git a/src/network/fetchSourcesData/index.ts b/src/network/fetchSourcesData/index.ts index 43c5c6ecb..31bdd5019 100644 --- a/src/network/fetchSourcesData/index.ts +++ b/src/network/fetchSourcesData/index.ts @@ -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 {