diff --git a/package.json b/package.json index 951a0d77d..c3ef90f3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "harperdb-studio", - "version": "4.3.3", + "version": "4.3.4", "description": "A UI for HarperDB", "deploymentUrl": "studio.harperdb.io", "private": true, diff --git a/src/components/instance/functions/manage/index.js b/src/components/instance/functions/manage/index.js index f36c4b0d8..2d5715f4b 100644 --- a/src/components/instance/functions/manage/index.js +++ b/src/components/instance/functions/manage/index.js @@ -480,26 +480,24 @@ function ManageIndex({ refreshCustomFunctions, loading }) { async function revertFileChanges(selectedFile) { - // ditch local storage version + // unset local storage version removeFileFromLocalStorage({ path: selectedFile.path }); - // get file - // - const { error, message} = await getComponentFile({ + // get canonical file version + const { error, message } = await getComponentFile({ auth, url, project: selectedFile.project, file: getRelativeFilepath(selectedFile.path) }); - removeFileFromLocalStorage({ path: selectedFile.path }); - if (error) { return alert.error(message); } await refreshCustomFunctions(); + // return canonical file content to caller return message; } diff --git a/src/components/instances/list/NewInstanceCard.js b/src/components/instances/list/NewInstanceCard.js index bf303acdd..629420613 100644 --- a/src/components/instances/list/NewInstanceCard.js +++ b/src/components/instances/list/NewInstanceCard.js @@ -22,7 +22,7 @@ function NewInstanceCard() {
- Register User-Installed Instance + Register Enterprise Instance diff --git a/src/components/instances/new/TypeAWS.js b/src/components/instances/new/TypeAWS.js index 43808ebc0..a1989dc96 100644 --- a/src/components/instances/new/TypeAWS.js +++ b/src/components/instances/new/TypeAWS.js @@ -1,14 +1,17 @@ import React from 'react'; import { Row, Col, Card, CardBody, Button } from 'reactstrap'; +import { useStoreState } from 'pullstate'; import AWSLogo from '../../shared/logos/AWSLogo'; +import appState from '../../../functions/state/appState'; function TypeAWS({ setFormData }) { + const theme = useStoreState(appState, (s) => s.theme); return ( - +