Skip to content

Commit 8117736

Browse files
committed
[hygiene] Tidy up
1 parent 792ced5 commit 8117736

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"*.snap",
77
"*.json",
88
"*.test.ts",
9-
"*.code-workspace"
9+
"*.code-workspace",
10+
"*.tsbuildinfo"
1011
],
1112
"words": [
1213
"Abad",

src/store/index.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,18 +1618,12 @@ export const createStore: typeof createStoreDecl = (): Store => {
16181618
(willSetRow) => {
16191619
const existingRowMap = mapGet(tableMap, rowId);
16201620
const prospectiveRow: Row = {
1621-
...(existingRowMap
1622-
? mapToObj<Cell>(existingRowMap)
1623-
: {}),
1621+
...(existingRowMap ? mapToObj<Cell>(existingRowMap) : {}),
16241622
[cellId]: validCell,
16251623
};
16261624
ifNotUndefined(
16271625
whileMutating(() =>
1628-
willSetRow(
1629-
tableId,
1630-
rowId,
1631-
structuredClone(prospectiveRow),
1632-
),
1626+
willSetRow(tableId, rowId, structuredClone(prospectiveRow)),
16331627
),
16341628
(row) =>
16351629
applyRowDirectly(

test/unit/core/ui-react/__snapshots__/ui-react-dom.test.tsx.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ exports[`EditableCellView > change type and Cell 3`] = `"<div class="editableCel
1010
1111
exports[`EditableCellView > change type and Cell 4`] = `"<div class="editableCell"><button title="boolean" class="boolean">boolean</button><input type="checkbox" checked=""></div>"`;
1212
13-
exports[`EditableCellView > change type and Cell 5`] = `"<div class="editableCell"><button title="object" class="object">object</button><textarea>{}</textarea></div>"`;
13+
exports[`EditableCellView > change type and Cell 5`] = `"<div class="editableCell"><button title="object" class="object">object</button><input class="" value="{}"></div>"`;
1414
15-
exports[`EditableCellView > change type and Cell 6`] = `"<div class="editableCell"><button title="object" class="object">object</button><textarea>{"x":1}</textarea></div>"`;
15+
exports[`EditableCellView > change type and Cell 6`] = `"<div class="editableCell"><button title="object" class="object">object</button><input class="" value="{&quot;x&quot;:1}"></div>"`;
1616
17-
exports[`EditableCellView > change type and Cell 7`] = `"<div class="editableCell"><button title="array" class="array">array</button><textarea>[]</textarea></div>"`;
17+
exports[`EditableCellView > change type and Cell 7`] = `"<div class="editableCell"><button title="array" class="array">array</button><input class="" value="[]"></div>"`;
1818
19-
exports[`EditableCellView > change type and Cell 8`] = `"<div class="editableCell"><button title="array" class="array">array</button><textarea>[1,2]</textarea></div>"`;
19+
exports[`EditableCellView > change type and Cell 8`] = `"<div class="editableCell"><button title="array" class="array">array</button><input class="" value="[1,2]"></div>"`;
2020
2121
exports[`EditableCellView > change type and Cell 9`] = `"<div class="editableCell"><button title="string" class="string">string</button><input value="1"></div>"`;
2222
@@ -44,13 +44,13 @@ exports[`EditableValueView > change type and Value 3`] = `"<div class="editableV
4444
4545
exports[`EditableValueView > change type and Value 4`] = `"<div class="editableValue"><button title="boolean" class="boolean">boolean</button><input type="checkbox" checked=""></div>"`;
4646
47-
exports[`EditableValueView > change type and Value 5`] = `"<div class="editableValue"><button title="object" class="object">object</button><textarea>{}</textarea></div>"`;
47+
exports[`EditableValueView > change type and Value 5`] = `"<div class="editableValue"><button title="object" class="object">object</button><input class="" value="{}"></div>"`;
4848
49-
exports[`EditableValueView > change type and Value 6`] = `"<div class="editableValue"><button title="object" class="object">object</button><textarea>{"x":1}</textarea></div>"`;
49+
exports[`EditableValueView > change type and Value 6`] = `"<div class="editableValue"><button title="object" class="object">object</button><input class="" value="{&quot;x&quot;:1}"></div>"`;
5050
51-
exports[`EditableValueView > change type and Value 7`] = `"<div class="editableValue"><button title="array" class="array">array</button><textarea>[]</textarea></div>"`;
51+
exports[`EditableValueView > change type and Value 7`] = `"<div class="editableValue"><button title="array" class="array">array</button><input class="" value="[]"></div>"`;
5252
53-
exports[`EditableValueView > change type and Value 8`] = `"<div class="editableValue"><button title="array" class="array">array</button><textarea>[1,2]</textarea></div>"`;
53+
exports[`EditableValueView > change type and Value 8`] = `"<div class="editableValue"><button title="array" class="array">array</button><input class="" value="[1,2]"></div>"`;
5454
5555
exports[`EditableValueView > change type and Value 9`] = `"<div class="editableValue"><button title="string" class="string">string</button><input value="1"></div>"`;
5656

0 commit comments

Comments
 (0)