From e8121628f703b441febfd2fc1430bbc9c28d7c6d Mon Sep 17 00:00:00 2001 From: Christoph Anderson Date: Sun, 9 Jul 2023 09:12:08 +0200 Subject: [PATCH] Fixed sanitizeActions. The method checks for "path" instead of script. Therefore, all actions are set to undefined and are never saved. --- src/PolicyEditor/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PolicyEditor/index.jsx b/src/PolicyEditor/index.jsx index 307eba0..96c0096 100644 --- a/src/PolicyEditor/index.jsx +++ b/src/PolicyEditor/index.jsx @@ -186,7 +186,7 @@ export class PolicyEditor extends Component { sanitizeActions(actions, actionTypes) { actionTypes.forEach(actionType => { if (actions[actionType]) { - if (actions[actionType].path === undefined || actions[actionType].path === "") { + if (actions[actionType].script === undefined || actions[actionType].script === "") { actions[actionType] = undefined; } else { if (actions[actionType].timeout === undefined) {