Skip to content

Commit

Permalink
chore(data-table-aggregate): solve aggregate validation issue
Browse files Browse the repository at this point in the history
Signed-off-by: samuel.park <[email protected]>
  • Loading branch information
piggggggggy committed Jan 7, 2025
1 parent 38ab35d commit 69a1268
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const dataTableInfo = ref<TransformDataTableInfo>({
dataTableId: props.originData?.data_table_id,
});
const groupByInfo = ref<AggregateOptions['group_by']>(cloneDeep(props.originData.group_by));
const functionInfo = ref<AggregateOptions['function']>(cloneDeep(props.originData.function));
const storeState = reactive({
dataTables: computed(() => widgetGenerateState.dataTables),
});
Expand Down Expand Up @@ -79,10 +80,11 @@ const handleUpdateSelectGroupBy = (selectedItem: SelectDropdownMenuItem, isSelec
};
/* Watcher */
watch([dataTableInfo, groupByInfo], ([_dataTableInfo, _groupByInfo]) => {
watch([dataTableInfo, groupByInfo, functionInfo], ([_dataTableInfo, _groupByInfo, _functionInfo]) => {
state.proxyOperatorOptions = {
data_table_id: _dataTableInfo.dataTableId,
group_by: _groupByInfo,
function: _functionInfo,
};
}, { deep: true, immediate: true });
watch(() => state.invalid, (_invalid) => {
Expand Down

0 comments on commit 69a1268

Please sign in to comment.