Skip to content

Conversation

@aravindpudayoor
Copy link

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the "import type not loading" error by ensuring safe calls on potentially nil objects and enforcing consistent key usage in session data.

  • Updated view template to use safe navigation for file_origination_type methods
  • Standardized hash key lookups in the import_data_controller to use strings

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
app/views/nfg_csv_importer/imports/show.html.haml Uses safe navigation operator (&.) for method calls to prevent errors on nil values
app/controllers/nfg_csv_importer/onboarding/import_data_controller.rb Updates key lookups in session data to consistently use string keys to avoid type mismatches

@ganeshmohan2021
Copy link
Collaborator

Please fix the failing specs

Copy link

@atifbonterra atifbonterra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Please fix the failing specs

Copy link
Collaborator

@kcpavan kcpavan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this changes affect DM ?

@aravindpudayoor
Copy link
Author

Won't this changes affect DM ?

@kcpavan If we proceed with this branch in FP, it won't affect DM. Otherwise, it may affect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants