Skip to content

Commit f9ed81b

Browse files
committed
pass valueType to newly created metadata fields
1 parent 75062b7 commit f9ed81b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/dagshub/data-engine/metadataKeyValue/MetadataKeyValueList.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export function MetadataKeyValueList({
145145
}
146146
setTemporaryMetadataList((prevList) => {
147147
const newList = [...prevList];
148+
debugger;
148149
newList[index] = { ...newList[index], key: newKey };
149150
return newList;
150151
});

src/components/dagshub/data-engine/metadataKeyValue/MetadataKeyValuePair.tsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ export function MetadataKeyValuePair({
6969
id: 'STRING',
7070
label: 'String',
7171
},
72-
{
73-
id: 'BLOB',
74-
label: 'Blob',
75-
},
72+
// {
73+
// id: 'BLOB',
74+
// label: 'Blob',
75+
// },
7676
];
7777

7878
return (
@@ -136,6 +136,7 @@ export function MetadataKeyValuePair({
136136
saveValueTypeLocally(index, value?.id);
137137
}
138138
}}
139+
initialChecked={valueTypes.find((type) => type.id === valueType)}
139140
options={valueTypes}
140141
isReadOnly={true}
141142
label={'Value type'}

0 commit comments

Comments
 (0)