Skip to content

Commit c422a06

Browse files
committed
v1.2.2
1 parent d547aae commit c422a06

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "OpenAPI DevTools",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"devtools_page": "index.html",
66
"permissions": [],
77
"icons": {

resources/dist.zip

32 Bytes
Binary file not shown.

src/lib/RequestStore.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export default class RequestStore {
5353

5454
public export = (): string => {
5555
return stringify({
56-
store: this.store,
5756
leafMap: this.leafMap,
5857
disabledHosts: Array.from(this.disabledHosts),
5958
});

src/ui/ControlConfigImportExport.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ function ControlConfigImport() {
2323
const { isOpen, onOpen, onClose } = useDisclosure();
2424
const [value, setValue] = useState("");
2525

26+
const onCloseModal = () => {
27+
onClose();
28+
setValue("");
29+
};
30+
2631
const initialRef = useRef(null);
2732
const finalRef = useRef(null);
2833

@@ -76,7 +81,7 @@ function ControlConfigImport() {
7681
initialFocusRef={initialRef}
7782
finalFocusRef={finalRef}
7883
isOpen={isOpen}
79-
onClose={onClose}
84+
onClose={onCloseModal}
8085
>
8186
<ModalOverlay />
8287
<ModalContent>
@@ -97,7 +102,7 @@ function ControlConfigImport() {
97102
<Button onClick={onImport} colorScheme="blue" mr={3}>
98103
Import
99104
</Button>
100-
<Button onClick={onClose}>Cancel</Button>
105+
<Button onClick={onCloseModal}>Cancel</Button>
101106
</ModalFooter>
102107
</ModalContent>
103108
</Modal>

0 commit comments

Comments
 (0)