From 4ea94152c43d6b77b5f44a80207fc4fa3e58a6af Mon Sep 17 00:00:00 2001 From: Jan-Yves Ruzicka Date: Sun, 22 Dec 2019 12:33:02 +1300 Subject: [PATCH] Remove @original_item_due_id Remove one last @original_item_due_id from app/views/todos/destroy.js.erb --- app/views/todos/destroy.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/todos/destroy.js.erb b/app/views/todos/destroy.js.erb index b6d14bd8..5df02c37 100644 --- a/app/views/todos/destroy.js.erb +++ b/app/views/todos/destroy.js.erb @@ -12,7 +12,7 @@ function show_empty_messages() { <% if @old_due_empty -%> - $('#empty_<%=@original_item_due_id%>').slideDown(1000); + $('#empty_<%=get_due_id_for_calendar(@original_item.due)%>').slideDown(1000); <% end -%> <% if todo_container_is_empty -%>