Skip to content

Commit

Permalink
chore(dashboard-evaluate): temporarily remove duplicated eval name va…
Browse files Browse the repository at this point in the history
…lidation

Signed-off-by: samuel.park <[email protected]>
  • Loading branch information
piggggggggy committed Jan 8, 2025
1 parent 1b98127 commit b69f2f9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const state = reactive({
globalVariablePopperVisible: false,
invalid: computed<boolean>(() => {
if (!state.proxyOperatorOptions.data_table_id) return true;
const fieldNames = expressionsInfo.value.map((d) => d.name);
if (fieldNames.length !== new Set(fieldNames).size) return true;
// const fieldNames = expressionsInfo.value.map((d) => d.name);
// if (fieldNames.length !== new Set(fieldNames).size) return true;
if (!expressionsInfo.value.every((d) => !!d.name && !!d.expression)) return true;
if (expressionsInfo.value.some((d) => !isFieldNameValid(d.name, storeState.currentDataTable))) return true;
return false;
Expand Down

0 comments on commit b69f2f9

Please sign in to comment.