From 24ced0c168aa4e95909bd32686cf857ed55aa0cc Mon Sep 17 00:00:00 2001 From: Sakshi Gupta Date: Thu, 29 Jan 2026 16:36:47 +0530 Subject: [PATCH] updated the included value validation and excluded to be optional --- src/Explorer/Controls/Settings/SettingsComponent.tsx | 7 ------- .../SettingsSubComponents/DataMaskingComponent.tsx | 9 +-------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/Explorer/Controls/Settings/SettingsComponent.tsx b/src/Explorer/Controls/Settings/SettingsComponent.tsx index 30d5ac3bc..9f50b53c2 100644 --- a/src/Explorer/Controls/Settings/SettingsComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsComponent.tsx @@ -687,13 +687,6 @@ export class SettingsComponent extends React.Component { - if (!newDataMasking.excludedPaths) { - newDataMasking.excludedPaths = []; - } - if (!newDataMasking.includedPaths) { - newDataMasking.includedPaths = []; - } - const validationErrors = []; if (newDataMasking.includedPaths === undefined || newDataMasking.includedPaths === null) { validationErrors.push("includedPaths is required"); diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/DataMaskingComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/DataMaskingComponent.tsx index 2dcc0f458..61ac40931 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/DataMaskingComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/DataMaskingComponent.tsx @@ -22,14 +22,7 @@ interface DataMaskingComponentState { } const emptyDataMaskingPolicy: DataModels.DataMaskingPolicy = { - includedPaths: [ - { - path: "/", - strategy: "Default", - startPosition: 0, - length: -1, - }, - ], + includedPaths: [], excludedPaths: [], };