Remove before-after + fix header label (#9932)
- Fix header label on step Before <img width="224" alt="Capture d’écran 2025-01-30 à 12 11 27" src="https://github.com/user-attachments/assets/e04e2d83-2414-4a92-a307-159e1ca16c64" /> <img width="224" alt="Capture d’écran 2025-01-30 à 13 27 40" src="https://github.com/user-attachments/assets/72e2c567-7ee0-43ff-9ae2-898e46d677c1" /> After <img width="224" alt="Capture d’écran 2025-01-30 à 13 29 00" src="https://github.com/user-attachments/assets/e7e458ab-458d-4e84-98a2-63596f44e0e7" /> <img width="224" alt="Capture d’écran 2025-01-30 à 13 29 25" src="https://github.com/user-attachments/assets/df1b0cbd-c8f2-44f6-b2f6-944e5ec8e14f" /> - Remove before - after when there is only one of them
This commit is contained in:
@ -46,11 +46,9 @@ export const generateFakeObjectRecordEvent = (
|
||||
if (action === DatabaseEventAction.CREATED) {
|
||||
return {
|
||||
...baseResult,
|
||||
properties: {
|
||||
'properties.after': {
|
||||
isLeaf: false,
|
||||
value: {
|
||||
after: { isLeaf: false, value: after, label: 'After Creation' },
|
||||
},
|
||||
value: after,
|
||||
label: 'Record Fields',
|
||||
},
|
||||
};
|
||||
@ -75,11 +73,9 @@ export const generateFakeObjectRecordEvent = (
|
||||
if (action === DatabaseEventAction.DELETED) {
|
||||
return {
|
||||
...baseResult,
|
||||
properties: {
|
||||
'properties.before': {
|
||||
isLeaf: false,
|
||||
value: {
|
||||
before: { isLeaf: false, value: before, label: 'Before Deletion' },
|
||||
},
|
||||
value: before,
|
||||
label: 'Record Fields',
|
||||
},
|
||||
};
|
||||
@ -88,15 +84,9 @@ export const generateFakeObjectRecordEvent = (
|
||||
if (action === DatabaseEventAction.DESTROYED) {
|
||||
return {
|
||||
...baseResult,
|
||||
properties: {
|
||||
'properties.before': {
|
||||
isLeaf: false,
|
||||
value: {
|
||||
before: {
|
||||
isLeaf: false,
|
||||
value: before,
|
||||
label: 'Before Permanent Deletion',
|
||||
},
|
||||
},
|
||||
value: before,
|
||||
label: 'Record Fields',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user