diff --git a/client/src/api.ts b/client/src/api.ts
index b162fff..3ab437b 100644
--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -130,7 +130,7 @@ export function checkQueryElem(elem: any): boolean {
});
}
return (elem.childrenOperator && elem.children) ||
- (elem.prop && elem.propOperand && elem.propOperator) ||
+ ("prop" in elem && "propOperand" in elem && "propOperator" in elem) ||
Object.keys(elem).length === 0;
}
export function checkQueryRequest(req: any): boolean {
diff --git a/client/src/components/MainWindow.tsx b/client/src/components/MainWindow.tsx
index d3c22cd..052a319 100644
--- a/client/src/components/MainWindow.tsx
+++ b/client/src/components/MainWindow.tsx
@@ -5,7 +5,7 @@ import AppBar from './appbar/AppBar';
import QueryWindow, { QueryWindowReducer, QueryWindowState } from './windows/QueryWindow';
import { NewTabProps } from './appbar/AddTabMenu';
import { newWindowState, newWindowReducer, WindowState, WindowType } from './windows/Windows';
-import EditArtistWindow from './windows/EditArtistWindow';
+import ArtistWindow from './windows/ArtistWindow';
var _ = require('lodash');
const darkTheme = createMuiTheme({
@@ -99,8 +99,8 @@ export default function MainWindow(props: any) {
state={tabState}
dispatch={tabDispatch}
/>
- case WindowType.EditArtist:
- return
diff --git a/client/src/components/appbar/AddTabMenu.tsx b/client/src/components/appbar/AddTabMenu.tsx
index fb79682..f2ce996 100644
--- a/client/src/components/appbar/AddTabMenu.tsx
+++ b/client/src/components/appbar/AddTabMenu.tsx
@@ -23,7 +23,7 @@ export default function AddTabMenu(props: IProps) {
{([
WindowType.Query,
- WindowType.EditArtist
+ WindowType.Artist
]).map((v: WindowType) =>