Compare commits

...
Author SHA1 Message Date
Sonarly Claude Code deeb9a0271 fix(server): handle missing viewId in fields widget during upsert
https://sonarly.com/issue/34109?type=bug

The `UpsertFieldsWidget` mutation throws a `VIEW_NOT_FOUND` error when a FIELDS widget's `configuration.viewId` is null, which can occur for workspaces where the 1.23 page layout backfill migration did not correctly associate a view with the widget.
2026-05-04 14:12:56 +00:00
@@ -117,8 +117,11 @@ export class FieldsWidgetUpsertService {
if (!isDefined(viewId)) {
throw new ViewFieldGroupException(
t`Fields widget has no associated view`,
t`Fields widget has no associated view. Try resetting the page layout to default.`,
ViewFieldGroupExceptionCode.VIEW_NOT_FOUND,
{
userFriendlyMessage: msg`Fields widget has no associated view. Try resetting the page layout to default.`,
},
);
}