mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
fix value of added and deleted
This commit is contained in:
parent
7be8fc4d45
commit
12b0807384
@ -27,12 +27,12 @@ export const diff = (a: unknown, b: unknown, ctx: Context = createContext()): Di
|
||||
// Define helpers
|
||||
|
||||
const added = () => {
|
||||
diffs.push({ kind: 'added', path, type: aType, value: a });
|
||||
diffs.push({ kind: 'added', path, type: bType, value: b });
|
||||
return diffs;
|
||||
};
|
||||
|
||||
const deleted = () => {
|
||||
diffs.push({ kind: 'deleted', path, type: bType, value: b });
|
||||
diffs.push({ kind: 'deleted', path, type: aType, value: a });
|
||||
return diffs;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user