Skip to content

Commit 97447a5

Browse files
style: add missing eslint-disable
1 parent f541c82 commit 97447a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/client/ui/hooks/debugging/use-why-did-you-update.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ export function useWhyDidYouUpdate(
3939
// We need to remove the meta tables from the previous and new
4040
// values to ensure we don't call any meta-methods on the props.
4141
if (t.table(previousValue)) {
42-
previousValue = setmetatable(table.clone(previousValue), undefined);
42+
// eslint-disable-next-line ts/no-non-null-assertion -- Required to remove meta table
43+
previousValue = setmetatable(table.clone(previousValue), undefined!);
4344
}
4445

4546
if (t.table(updatedValue)) {
46-
updatedValue = setmetatable(table.clone(updatedValue), undefined);
47+
// eslint-disable-next-line ts/no-non-null-assertion -- Required to remove meta table
48+
updatedValue = setmetatable(table.clone(updatedValue), undefined!);
4749
}
4850

4951
changesObject[key] = {

0 commit comments

Comments
 (0)