Skip to content

Commit

Permalink
clean up logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gatzjames committed Jun 5, 2024
1 parent 273279a commit c083acc
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ export const KeyValueEditor: FC<Props> = ({
getKey: item => item.id,
});

console.log({ pairsList });

const items = pairsList.items.length > 0 ? pairsList.items : [{ id: generateId('pair'), name: '', value: '', description: '', disabled: false }];

const readOnlyPairsList = useListData({
Expand All @@ -183,7 +181,6 @@ export const KeyValueEditor: FC<Props> = ({
});

function upsertPair(pair: typeof pairsList.items[0]) {
console.log({ pair });
if (pairsList.getItem(pair.id)) {
pairsList.update(pair.id, pair);
onChange(pairsList.items.map(item => (item.id === pair.id ? pair : item)));
Expand Down Expand Up @@ -295,8 +292,6 @@ export const KeyValueEditor: FC<Props> = ({
const isMultiline = pair.type === 'text' && pair.multiline;
const bytes = isMultiline ? Buffer.from(pair.value, 'utf8').length : 0;

console.log({ pair, isFile, isMultiline, bytes });

let valueEditor = (
<div className="relative h-full w-full flex flex-1 px-2">
<OneLineEditor
Expand Down

0 comments on commit c083acc

Please sign in to comment.