Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 13, 2023
1 parent 5c28ef1 commit 400ced5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export let runOnLoad = (fn) => {
// Base Request URL for Python Server
export const baseUrl = `http://127.0.0.1:${port}`;

export const supportedInterfaces = guideGlobalMetadata.supported_interfaces;
export const supportedInterfaces = guideGlobalMetadata.supported_interfaces;
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Search } from "../../../Search.js";
import { Modal } from "../../../Modal";
import { List } from "../../../List";

const defaultEmptyMessage = "No interfaces selected"
const defaultEmptyMessage = "No interfaces selected";

export class GuidedStructurePage extends Page {
constructor(...args) {
Expand All @@ -35,7 +35,7 @@ export class GuidedStructurePage extends Page {

list = new List({
emptyMessage: defaultEmptyMessage,
onChange: () => this.unsavedUpdates = true
onChange: () => (this.unsavedUpdates = true),
});

addButton = new Button();
Expand Down Expand Up @@ -96,7 +96,7 @@ export class GuidedStructurePage extends Page {
)
.catch((e) => console.error(e));

this.list.emptyMessage = defaultEmptyMessage
this.list.emptyMessage = defaultEmptyMessage;

for (const [key, name] of Object.entries(interfaces)) {
let found = this.search.options?.find((o) => o.value === name);
Expand Down
1 change: 0 additions & 1 deletion src/renderer/utils/url.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export function updateURLParams(paramsToUpdate) {
const params = new URLSearchParams(location.search);
for (let key in paramsToUpdate) {
Expand Down

0 comments on commit 400ced5

Please sign in to comment.