From 0920962d72365b9e071dcbe94d947a04bc679782 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sat, 11 Jan 2020 14:16:23 +0100 Subject: [PATCH] Used already unpacked property --- src/short-urls/helpers/ShortUrlsRowMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/short-urls/helpers/ShortUrlsRowMenu.js b/src/short-urls/helpers/ShortUrlsRowMenu.js index 7dd6e07d..b5df90f8 100644 --- a/src/short-urls/helpers/ShortUrlsRowMenu.js +++ b/src/short-urls/helpers/ShortUrlsRowMenu.js @@ -39,7 +39,7 @@ const ShortUrlsRowMenu = (DeleteShortUrlModal, EditTagsModal) => class ShortUrls render() { const { onCopyToClipboard, shortUrl, selectedServer } = this.props; const completeShortUrl = shortUrl && shortUrl.shortUrl ? shortUrl.shortUrl : ''; - const currentServerVersion = this.props.selectedServer ? this.props.selectedServer.version : ''; + const currentServerVersion = selectedServer ? selectedServer.version : ''; const showPreviewBtn = !isEmpty(currentServerVersion) && compareVersions(currentServerVersion, '<', '2.0.0'); const toggleModal = (prop) => () => this.setState((prevState) => ({ [prop]: !prevState[prop] })); const toggleQrCode = toggleModal('isQrModalOpen');