@inf-monkeys-tech/monkeys 1.1.38 → 1.1.39

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.
@@ -4937,14 +4937,14 @@ exports.NavigationRuntimeBundleSchema = zod_1.z
4937
4937
  const targetNodeId = value.headbarModeSwitch?.modes.find((mode) => mode.id === "smart")?.targetNodeId;
4938
4938
  if (targetNodeId) {
4939
4939
  const target = value.nodes.find((node) => node.nodeId === targetNodeId);
4940
- if (target?.kind !== "target" ||
4940
+ if (target && (target?.kind !== "target" ||
4941
4941
  target.targetRef.kind !== "page" ||
4942
4942
  target.resolvedTarget.kind !== "route" ||
4943
- target.disabled) {
4943
+ target.disabled)) {
4944
4944
  context.addIssue({
4945
4945
  code: "custom",
4946
4946
  path: ["headbarModeSwitch", "modes"],
4947
- message: "The smart Headbar mode must resolve to an enabled Page route in the compiled Navigation.",
4947
+ message: "A visible smart Headbar target must resolve to an enabled Page route in the compiled Navigation.",
4948
4948
  });
4949
4949
  }
4950
4950
  }