Skip to content

Commit 655333c

Browse files
committed
fix EditLayout component: update onSave handler to use value parameter for title
1 parent dba4197 commit 655333c

File tree

1 file changed

+2
-3
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/components

1 file changed

+2
-3
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/components/EditLayout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,11 @@ export function EditLayout({ children, params }: LayoutProps) {
126126
label={'DATASET NAME'}
127127
title={getDatasetTitleRes?.data?.datasets[0]?.title}
128128
goBackURL={`/dashboard/${routerParams.entityType}/${routerParams.entitySlug}/dataset`}
129-
onSave={(e) =>
129+
onSave={(val) =>
130130
updateDatasetTitleMutation.mutate({
131131
updateDatasetInput: {
132132
dataset: routerParams.id,
133-
title: e.title,
134-
tags: [],
133+
title: val,
135134
},
136135
})
137136
}

0 commit comments

Comments
 (0)