From eaf0fbccaa22265c103b069b2549a8466cecd121 Mon Sep 17 00:00:00 2001 From: Kabiru Mwenja Date: Thu, 8 Aug 2024 13:57:05 +0300 Subject: [PATCH] chore[Op#55967]: ensure last project folders is passed down to stimulus controller --- .../admin/storages/projects_storage_form_modal_component.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.rb b/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.rb index dcbcd5dd7162..ab6e4a89c5bc 100644 --- a/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.rb +++ b/modules/storages/app/components/storages/admin/storages/projects_storage_form_modal_component.rb @@ -35,9 +35,9 @@ class ProjectsStorageFormModalComponent < ApplicationComponent include StimulusHelper include AngularHelper - def initialize(project_storage:, **) + def initialize(project_storage:, last_project_folders: {}, **) @project_storage = project_storage - @last_project_folders = {} + @last_project_folders = last_project_folders super(@project_storage, **) end