Skip to content

Commit b5d286d

Browse files
committed
Add chaining system transform comment
1 parent 205f221 commit b5d286d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/platform/plugins/shared/dashboard/server/content_management/v1/transforms/out/transform_control_group_out.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ export function transformControlGroupOut(
2929
const legacyControlGroupOptions: StoredControlGroupInput['ignoreParentSettings'] | undefined =
3030
ignoreParentSettingsJSON ? JSON.parse(ignoreParentSettingsJSON) : undefined;
3131
if (legacyControlGroupOptions) {
32+
// Ignore filters if the legacy control group option is set to ignore filters, or if the legacy chaining system
33+
// is set to NONE. Including the chaining system check inside this if block is okay to do, because we don't expect
34+
// a legacy chaining system to be defined without legacyControlGroupOptions also being defined
3235
const ignoreFilters =
3336
controlGroupInput.chainingSystem === 'NONE' ||
3437
legacyControlGroupOptions.ignoreFilters ||

0 commit comments

Comments
 (0)