Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix: copy share link

AykutSarac1c153e5249bb
diff --git a/package.json b/package.json
index 2dc26e04..061ccccf 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,6 @@
"lodash.debounce": "^4.0.8",
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2",
- "lz-string": "^1.5.0",
"next": "13.3.0",
"react": "^18.2.0",
"react-color": "^2.19.3",
@@ -64,7 +63,6 @@
"@types/lodash.debounce": "^4.0.7",
"@types/lodash.get": "^4.4.7",
"@types/lodash.set": "^4.3.7",
- "@types/lz-string": "^1.5.0",
"@types/node": "^20.4.2",
"@types/react": "18.2.6",
"@types/react-color": "^3.0.6",
diff --git a/src/containers/Modals/CloudModal/index.tsx b/src/containers/Modals/CloudModal/index.tsx
index 9e2bbb04..e00eb0ac 100644
--- a/src/containers/Modals/CloudModal/index.tsx
+++ b/src/containers/Modals/CloudModal/index.tsx
@@ -123,7 +123,7 @@ export const CloudModal: React.FC<ModalProps> = ({ opened, onClose }) => {
);
const copyShareLink = React.useCallback((fileId: string) => {
- const shareLink = `${window.location.origin}/?json=${fileId}`;
+ const shareLink = `${window.location.origin}/editor?json=${fileId}`;
navigator.clipboard.writeText(shareLink);
toast.success("Copied share link to clipboard!");
}, []);
diff --git a/yarn.lock b/yarn.lock
index 866ffeda..ca82b2e7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2159,13 +2159,6 @@
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.191.tgz#09511e7f7cba275acd8b419ddac8da9a6a79e2fa"
integrity sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==
-"@types/lz-string@^1.5.0":
- version "1.5.0"
- resolved "https://registry.yarnpkg.com/@types/lz-string/-/lz-string-1.5.0.tgz#2f15d2dd9dbfb344f3d31aee5a82cf350b037e5f"
- integrity sha512-s84fKOrzqqNCAPljhVyC5TjAo6BH4jKHw9NRNFNiRUY5QSgZCmVm5XILlWbisiKl+0OcS7eWihmKGS5akc2iQw==
- dependencies:
- lz-string "*"
-
"@types/node@*":
version "20.1.2"
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.1.2.tgz#8fd63447e3f99aba6c3168fd2ec4580d5b97886f"
@@ -4533,7 +4526,7 @@ lru_map@^0.3.3:
resolved "https://registry.yarnpkg.com/lru_map/-/lru_map-0.3.3.tgz#b5c8351b9464cbd750335a79650a0ec0e56118dd"
integrity sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==
-lz-string@*, lz-string@^1.5.0:
+lz-string@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/lz-string/-/lz-string-1.5.0.tgz#c1ab50f77887b712621201ba9fd4e3a6ed099941"
integrity sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==