Skip to content

Commit 352b42c

Browse files
committed
delete functionality fixes
1 parent 8f3dc94 commit 352b42c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/appConfigurationRedesign/AppConfigurationParentLayer.js

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function restructure(data1) {
8282
name: page.label || page.page || "UNKNOWN",
8383
cards: [
8484
{
85+
header: crypto.randomUUID(),
8586
fields: cardFields,
8687
headerFields: [
8788
{

health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/appConfigurationRedesign/AppConfigurationWrapper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const reducer = (state = initialState, action, updateLocalization) => {
147147
if (j.header === action.payload.currentCard?.header) {
148148
return {
149149
...j,
150-
fields: j.fields?.filter((k) => k.id !== action.payload.currentField.id),
150+
fields: j.fields?.filter((k) => k.jsonPath !== action.payload.currentField.jsonPath),
151151
};
152152
}
153153
return j;

health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/appConfigurationRedesign/AppFieldComposer.js

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ const Field = ({
135135
{isDelete && (
136136
<div
137137
onClick={(e) => {
138+
e.stopPropagation();
138139
onDelete();
139140
}}
140141
style={{
@@ -824,6 +825,7 @@ function AppFieldComposer({
824825
<div
825826
ref={componentRef}
826827
onClick={(e) => {
828+
e.stopPropagation();
827829
onSelectField();
828830
}}
829831
className="app-config-field-wrapper"

0 commit comments

Comments
 (0)