Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 1, 2023
1 parent 1fd04f2 commit a3b530c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/renderer/src/stories/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ export class Table extends LitElement {
return;
}


if (value && k === ogThis.keyColumn && unresolved[this.row]) {
if (value in ogThis.data) {
ogThis.#handleValidationResult(
Expand Down Expand Up @@ -324,13 +323,12 @@ export class Table extends LitElement {
wasCalled = true;
callback(valid);
};

await validator.call(this, value, newCallback);
if (!wasCalled) og(value, callback);
};
} else
info.validator = async function (value, callback) {

let wasCalled = false;

const newCallback = (valid) => {
Expand Down Expand Up @@ -452,7 +450,7 @@ export class Table extends LitElement {
const isUserUpdate = initialCellsToUpdate <= validated;

// Transfer data to object (if valid)
if (isValid){
if (isValid) {
if (header === this.keyColumn) {
if (value && value !== rowName) {
const old = target[rowName] ?? {};
Expand Down

0 comments on commit a3b530c

Please sign in to comment.