@optifye/dashboard-core 6.9.15 → 6.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47972,10 +47972,11 @@ var TargetsView = ({
|
|
|
47972
47972
|
}
|
|
47973
47973
|
let actionType = "assembly";
|
|
47974
47974
|
let actionId = actionIdsData.assembly;
|
|
47975
|
-
|
|
47975
|
+
const effectiveActionId = threshold?.action_id ?? ws.action_id;
|
|
47976
|
+
if (effectiveActionId === packagingAction.id || !effectiveActionId && ws.action_type === "packaging") {
|
|
47976
47977
|
actionType = "packaging";
|
|
47977
47978
|
actionId = packagingAction.id;
|
|
47978
|
-
} else if (
|
|
47979
|
+
} else if (effectiveActionId === assemblyAction.id || !effectiveActionId && ws.action_type === "assembly") {
|
|
47979
47980
|
actionType = "assembly";
|
|
47980
47981
|
actionId = assemblyAction.id;
|
|
47981
47982
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -47943,10 +47943,11 @@ var TargetsView = ({
|
|
|
47943
47943
|
}
|
|
47944
47944
|
let actionType = "assembly";
|
|
47945
47945
|
let actionId = actionIdsData.assembly;
|
|
47946
|
-
|
|
47946
|
+
const effectiveActionId = threshold?.action_id ?? ws.action_id;
|
|
47947
|
+
if (effectiveActionId === packagingAction.id || !effectiveActionId && ws.action_type === "packaging") {
|
|
47947
47948
|
actionType = "packaging";
|
|
47948
47949
|
actionId = packagingAction.id;
|
|
47949
|
-
} else if (
|
|
47950
|
+
} else if (effectiveActionId === assemblyAction.id || !effectiveActionId && ws.action_type === "assembly") {
|
|
47950
47951
|
actionType = "assembly";
|
|
47951
47952
|
actionId = assemblyAction.id;
|
|
47952
47953
|
}
|