snapshot-labs / sx-monorepo

Snapshot X monorepo
https://docs.snapshotx.xyz
MIT License
11 stars 10 forks source link

fix: fix cloning of `undefined` #385

Closed wa0x6e closed 1 month ago

wa0x6e commented 1 month ago

Summary

This PR fixes calling clone on undefined, resulting on an uncaught error

This PR edit the loadProposals signature, to explicitly state that filter can be undefined, and add fallback when cloning it

How to test

  1. Go to http://localhost:8080/#/s:ens.eth
  2. Proposals should load