Skip to content

Commit 17de742

Browse files
authored
fix: Add fragment list to model for custom fragments (#4601)
* fix: always add fragment list to model * chore: create changeset * chore: update changeset
1 parent 66c35cf commit 17de742

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.changeset/olive-seahorses-bow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@sap-ux-private/preview-middleware-client": patch
3+
"@sap-ux/preview-middleware": patch
4+
---
5+
6+
fix: Add fragment list to model for custom fragments

packages/preview-middleware-client/src/adp/controllers/AddCustomFragment.controller.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,8 @@ export default class AddCustomFragment extends BaseDialog<AddFragmentModel> {
145145
*/
146146
async buildDialogData(): Promise<void> {
147147
try {
148-
let isCustomColumnFragment = false;
149-
if (this.options.type === 'tableColumn') {
150-
await this.addFragmentListToModel();
151-
isCustomColumnFragment = true;
152-
}
148+
const isCustomColumnFragment = this.options.type === 'tableColumn';
149+
await this.addFragmentListToModel();
153150
this.model.setProperty('/isCustomColumnFragment', isCustomColumnFragment);
154151
} catch (e) {
155152
const error = getError(e);

0 commit comments

Comments
 (0)