From e66731ce4bd70aa137f864519df2b0c33c34d191 Mon Sep 17 00:00:00 2001 From: Ceithir Date: Sat, 23 Sep 2023 16:09:55 +0200 Subject: [PATCH] Calling method on nil error Similar behavior to update_search --- app/models/common_tagging.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/common_tagging.rb b/app/models/common_tagging.rb index d297518092e..6780d4e10ef 100644 --- a/app/models/common_tagging.rb +++ b/app/models/common_tagging.rb @@ -30,7 +30,7 @@ def update_wrangler end def update_child_autocomplete - common_tag.refresh_autocomplete + common_tag&.refresh_autocomplete end # A relationship should inherit its characters' fandoms