mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 15:26:22 +00:00
fixup! fix: mostrar la relación deshabilitada #17616
This commit is contained in:
parent
c82203a9f6
commit
23c9c7dc0d
1 changed files with 3 additions and 1 deletions
|
@ -19,8 +19,10 @@ module Metadata
|
|||
|
||||
disabled = false
|
||||
|
||||
# El campo está deshabilitado si está completo y no incluye el
|
||||
# post actual.
|
||||
if inverse?
|
||||
disabled = p[inverse].empty? || ![p[inverse].value].flatten.include?(post.uuid.value)
|
||||
disabled = p[inverse].present? && ![p[inverse].value].flatten.include?(post.uuid.value)
|
||||
end
|
||||
|
||||
[title(p), p.uuid.value, disabled]
|
||||
|
|
Loading…
Reference in a new issue