Skip to content

Commit

Permalink
chore(data-table): solve transform data-table update bug
Browse files Browse the repository at this point in the history
Signed-off-by: samuel.park <samuel.park@megazone.com>
  • Loading branch information
piggggggggy committed Feb 22, 2025
1 parent 3cc2821 commit b64bcdf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ const { mutateAsync: updateWidget } = useMutation({
: keys.publicWidgetQueryKey;
queryClient.setQueryData(widgetQueryKey.value, () => data);
showSuccessMessage(i18n.t('COMMON.WIDGETS.DATA_TABLE.FORM.UPDATE_DATA_TALBE_INVALID_SUCCESS'), '');
widgetGenerateStore.setSelectedDataTableId(state.dataTableId);
},
onError: (e) => {
showErrorMessage(e.message, e);
Expand Down Expand Up @@ -431,6 +430,7 @@ const handleUpdateDataTable = async () => {
state: 'INACTIVE',
options: sanitizedOptions,
});
widgetGenerateStore.setSelectedDataTableId(result.data_table_id);
await cascadeUpdateDataTable(result.data_table_id);
}
setTimeout(() => {
Expand Down

0 comments on commit b64bcdf

Please sign in to comment.