You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
Running locally via yarn dev, with a wallet connected to mainnet.
The Govern tab doesn't load, and displays an error instead:
Specifically, CGP 99 triggers the problem.
This proposal has no value (or placeholder) for date-executed. When this proposal is omitted from the list, the page loads without error.
In the function parsedYAMLFromMarkdown defined in src/utils/proposals.ts, it assumes 2-element arrays resulting from splitting a string on a :. For CGP 99, this array only contains a single element, and doesn't fail gracefully in a dev environment.
It seems to work in production.
The text was updated successfully, but these errors were encountered:
yerdua
changed the title
Investigate failing parsing YAML on local dev environement
Investigate failing parsing YAML on local dev environment
Sep 19, 2023
…lues (#178)
* fix: prevent app from crashing in dev mode when yaml has undefined values
Also replace the handcrafted yaml parser
[Closes#176]
* Update src/features/governance/data/getProposals.ts
Context:
Running locally via
yarn dev
, with a wallet connected to mainnet.The
Govern
tab doesn't load, and displays an error instead:Specifically, CGP 99 triggers the problem.
This proposal has no value (or placeholder) for date-executed. When this proposal is omitted from the list, the page loads without error.
In the function
parsedYAMLFromMarkdown
defined in src/utils/proposals.ts, it assumes 2-element arrays resulting from splitting a string on a:
. For CGP 99, this array only contains a single element, and doesn't fail gracefully in a dev environment.It seems to work in production.
The text was updated successfully, but these errors were encountered: