vitessio / arewefastyet

Automated Benchmarking System for Vitess
https://benchmark.vitess.io
Apache License 2.0
70 stars 59 forks source link

Fix: Resolving type errorApi. #542

Closed DhairyaMajmudar closed 1 month ago

DhairyaMajmudar commented 2 months ago

What kind of change does this PR introduce?

Resolving errorApi types from files:

  1. ForeignKeysPage.tsx
  2. MacroPage.tsx
  3. MacroQueriesComparePage.tsx

By making useState of type null and string: useState<null | string>(null)

Also added string type to errorApi constant in utils.ts file.

Issue Number: N/A

Screenshots/videos: N/A

Summary

Removed typescript problems coming from errorApi.

Does this PR introduce a breaking change?

DhairyaMajmudar commented 1 month ago

@frouioui ping for PR review : )