Skip to content

Commit

Permalink
fix: always initialize Starknet proposal labels (#904)
Browse files Browse the repository at this point in the history
This field is non-nullable so it has to be defined.
  • Loading branch information
Sekhmet authored Oct 18, 2024
1 parent e6e060a commit d4c6558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export async function handleProposalMetadata(metadataUri: string) {
if (exists) return;

const proposalMetadataItem = new ProposalMetadataItem(dropIpfs(metadataUri));
proposalMetadataItem.labels = [];

const metadata: any = await getJSON(metadataUri);
if (metadata.title) proposalMetadataItem.title = metadata.title;
Expand Down

0 comments on commit d4c6558

Please sign in to comment.