Browse Source

#351

feature/351
みてるぞ 3 days ago
parent
commit
7e89fb286a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/app/models/tag.rb

+ 1
- 1
backend/app/models/tag.rb View File

@@ -120,7 +120,7 @@ class Tag < ApplicationRecord

find_or_create_by_tag_name!(name, category: (cat || :general)).tap do |tag|
tag.update!(category: cat) if cat && tag.category != cat
next if sections_by_tag.blank?
next if sections_by_tag.empty?

sections[tag.id] ||= []
sections[tag.id].concat(sections_by_tag)


Loading…
Cancel
Save