@digi-frontend/dgate-api-documentation 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digi-frontend/dgate-api-documentation",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "main": "dist/src/index.js",
5
5
  "module": "dist/src/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -690,8 +690,10 @@ const MethodsAccordion = ({
690
690
  headers: {},
691
691
  })
692
692
 
693
- setFieldValue('responses', clonedResponses)
694
- responseIndex = 0
693
+ if (setFieldValue) {
694
+ setFieldValue('responses', clonedResponses)
695
+ responseIndex = 0
696
+ }
695
697
  }
696
698
  setCurrentResponseIndex(responseIndex)
697
699
  indexRef.current = responseIndex
@@ -699,7 +701,7 @@ const MethodsAccordion = ({
699
701
  generateResponseTableData(method.responses[responseIndex].headers, responseIndex)
700
702
  )
701
703
  }
702
- }, [selectedStatusCode, method.responses])
704
+ }, [selectedStatusCode, method.responses, setFieldValue])
703
705
 
704
706
  useEffect(() => {
705
707
  if (indexRef.current && indexRef.current > -1) {