5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 07:06:22 +00:00

fixup! fix: mostrar la relación deshabilitada #17616

This commit is contained in:
f 2024-10-23 14:19:12 -03:00
parent c82203a9f6
commit 23c9c7dc0d
No known key found for this signature in database

View file

@ -19,8 +19,10 @@ module Metadata
disabled = false disabled = false
# El campo está deshabilitado si está completo y no incluye el
# post actual.
if inverse? 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 end
[title(p), p.uuid.value, disabled] [title(p), p.uuid.value, disabled]