Skip to content

Comments

bugfix: exportPath null when no use of eotdl dataset#48

Open
LuisPalluel wants to merge 1 commit intoearthpulse:mainfrom
LuisPalluel:bug/export-path-null
Open

bugfix: exportPath null when no use of eotdl dataset#48
LuisPalluel wants to merge 1 commit intoearthpulse:mainfrom
LuisPalluel:bug/export-path-null

Conversation

@LuisPalluel
Copy link

Hi,

I was testing Scaneo with my own data.
After labelling my campaign, I tried to export the labels but an error happened.
After searching in the code, it appears that the exportPath variable was null when trying to export.
This variable is set when "campaigns.current?.eotdlDatasetId" in the form but not otherwise.

So I made a small change by checking if the campaign has a path and no exportPath is set, then I create the exportPath to "{campaignPath}/labels".

Feel free to use or not.
I'm not used to pull request thus sorry if the shape of my PR is not appropriate.

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.

1 participant