Skip to content

Commit 7cfd68b

Browse files
authored
fix: Relationship section actions (#18294)
1 parent 981821a commit 7cfd68b

File tree

1 file changed

+3
-1
lines changed
  • packages/schemas/src/Components/Concerns

1 file changed

+3
-1
lines changed

packages/schemas/src/Components/Concerns/HasKey.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ public function getKey(bool $isAbsolute = true): ?string
3232
return $this->cachedAbsoluteKey;
3333
}
3434

35-
$key = $this->evaluate($this->key) ?? $this->getStatePath(isAbsolute: false);
35+
$key = ($this->isKeyInheritable() || (! $this->hasStatePath()))
36+
? ($this->evaluate($this->key) ?? $this->getStatePath(isAbsolute: false))
37+
: $this->getStatePath(isAbsolute: false);
3638

3739
if (! $isAbsolute) {
3840
return $key;

0 commit comments

Comments
 (0)