regen-network / regen-web

:seedling: Website and marketplace application

Home Page:https://app.regen.network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project edit metadata form not found for on chain only projects

blushi opened this issue · comments

Describe the bug
When trying to edit an on chain project metadata from the metadata form, I get "not found" if the project doesn't have any off chain project associated to it yet.

To Reproduce
From /project-pages/{onChainId}/edit/metadata, try to edit the metadata for an on chain project without any corresponding off chain project (this can happen in case the project has been created through the regen ledger CLI)

Expected behavior
I should be able to edit the anchored metadata for the project.

Screenshots
image.png

Additional context
This is because of this:

const creditClassId = offChainProject?.metadata?.['regen:creditClassId'];
, we should fallback to the on chain credit class id.


For Admin Use

  • Not duplicate issue
  • Appropriate labels and zenhub epics applied
  • Appropriate contributors tagged