diff --git a/app/models/communication/website/menu/item.rb b/app/models/communication/website/menu/item.rb index cc4355371cf5b0138b3ccaa49798e84dcd783d81..5c0cebf91d28576e6837d746a9d55fd93344e758 100644 --- a/app/models/communication/website/menu/item.rb +++ b/app/models/communication/website/menu/item.rb @@ -122,7 +122,7 @@ class Communication::Website::Menu::Item < ApplicationRecord end def sync_menu - menu.sync_with_git if menu + menu.sync_with_git if menu && !menu.destroyed? end def siblings