Skip to content

Commit

Permalink
Fix import & export feature (#47)
Browse files Browse the repository at this point in the history
* Fix feedback modal disappear when click

* Fix export with new updated library

* Fix import feature

* Pump version
  • Loading branch information
thanhlmm authored Feb 4, 2022
1 parent 9c6769b commit 5a37ca4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"productName": "RefiApp",
"homepage": "https://refiapp.io",
"authors": "mihthanh27@gmail.com",
"version": "0.0.12",
"version": "0.0.13",
"description": "A tool to make developer less pain when developing application with Firestore indeed they will save move time to focus on building application instead of playing with poor DX product",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions vite/src/atoms/navigator.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const actionExportCollectionJSON = async (collectionPath: string) => {
.then(({ docs }: { docs: string }) => {
const docsAsString = removeFirebaseSerializeMetaData(docs, ["__path__"]);
exportFromJSON({
data: docsAsString,
data: JSON.parse(docsAsString),
fileName: collectionPath.replaceAll("/", "_"),
exportType: "json",
});
Expand All @@ -174,7 +174,7 @@ export const actionExportCollectionCSV = async (collectionPath: string) => {
.then(({ docs }: { docs: string }) => {
const docsAsString = removeFirebaseSerializeMetaData(docs, ["__path__"]);
exportFromJSON({
data: docsAsString,
data: JSON.parse(docsAsString),
fileName: collectionPath.replaceAll("/", "_"),
exportType: "csv",
});
Expand Down
1 change: 1 addition & 0 deletions vite/src/components/ImportModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ const ImportModal = () => {
<Button
size="small"
disabled={!formState.isValid || docs.length <= 0}
onClick={handleSubmit(onSubmit)}
isPrimary
type="submit"
>
Expand Down

0 comments on commit 5a37ca4

Please sign in to comment.