ScottishCovidResponse / rampvis-ui

This is a React based RAMP VIS visualisation interface. This client uses the REST API: https://github.com/ScottishCovidResponse/rampvis-api
BSD 2-Clause "Simplified" License
7 stars 6 forks source link

Use arrow function and rollback the .eslint changes for _this #115

Closed saifulkhan closed 2 years ago

saifulkhan commented 2 years ago

In https://github.com/ScottishCovidResponse/rampvis-ui/blob/nextjs-migrate/src/components/ensemble/controller.js#L99 use an arrow function and rollback the changes in the .eslistrc. Please see the conversation https://app.slack.com/client/T028UQMPP1P/C02NDS0GQFK or reply there if you need anything, @kamakshidasan.

kamakshidasan commented 2 years ago

@saifulkhan @phongvis I have completed this and merged my branch.

In doing so, I found that "src/utils/apiService" had become "src/utils/ApiService". I reverted that and changed the import statements.