From 785ea8f049c2da397a3fa44b1d207ead5c4839f9 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 1 Mar 2022 09:43:14 +0530 Subject: [PATCH] Fixes app version preview (#2368) --- frontend/src/Editor/Editor.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Editor/Editor.jsx b/frontend/src/Editor/Editor.jsx index cd24510de0..6f4911083b 100644 --- a/frontend/src/Editor/Editor.jsx +++ b/frontend/src/Editor/Editor.jsx @@ -942,7 +942,7 @@ class Editor extends React.Component { hoveredComponent, } = this.state; - const appLink = slug ? `/applications/${slug}` : ''; + const appVersionPreviewLink = editingVersion ? `/applications/${app.id}/versions/${editingVersion.id}` : ''; return (
@@ -1020,7 +1020,7 @@ class Editor extends React.Component {