We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 686de9d commit 202718dCopy full SHA for 202718d
1 file changed
apps/webapp/app/routes/admin.feature-flags.tsx
@@ -364,7 +364,12 @@ function ConfirmDialog({
364
}) {
365
const allKeys = Object.keys(controlTypes).sort();
366
367
- const changes = allKeys.flatMap((key) => {
+ type Change =
368
+ | { key: string; type: "added"; newVal: string }
369
+ | { key: string; type: "removed"; oldVal: string }
370
+ | { key: string; type: "changed"; oldVal: string; newVal: string };
371
+
372
+ const changes = allKeys.flatMap<Change>((key) => {
373
const wasSet = key in initialValues;
374
const isSet = key in newValues;
375
const oldVal = initialValues[key];
0 commit comments