Skip to content

Commit

Permalink
fix: admin/internet/domain: "change" button stuck if dialog is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Dec 6, 2023
1 parent 776b44d commit d394b22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/src/InternetPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default function InternetPage() {
h(Btn, {
size: 'small',
variant: 'outlined',
onClick: () =>changeBaseUrl().then(config.reload)
onClick: () => void(changeBaseUrl().then(config.reload))
}, "Change"),
domain && h(Btn, {
size: 'small',
Expand Down
2 changes: 1 addition & 1 deletion src/cross.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const CFG = constMap(['geo_enable', 'geo_allow', 'geo_list', 'geo_allow_u
export const LIST = { add: '+', remove: '-', update: '=', props: 'props', ready: 'ready', error: 'e' }
export type Dict<T=any> = Record<string, T>
export type Falsy = false | null | undefined | '' | 0
type Truthy<T> = T extends false | '' | 0 | null | undefined ? never : T
type Truthy<T> = T extends false | '' | 0 | null | undefined | void ? never : T
export type Callback<IN=void, OUT=void> = (x:IN) => OUT
export type Promisable<T> = T | Promise<T>

Expand Down

0 comments on commit d394b22

Please sign in to comment.