Gemfile.lock update, typecheck/lint error fix.

pull/1565/head
Rick Carlino 2019-11-08 09:04:00 -06:00
parent 8c559f345f
commit 405c5e02db
2 changed files with 4 additions and 4 deletions

View File

@ -297,8 +297,6 @@ GEM
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.4)
zeitwerk (2.2.0)
zero_downtime_migrations (0.0.7)
activerecord
PLATFORMS
ruby
@ -340,7 +338,6 @@ DEPENDENCIES
smarf_doc!
tzinfo
valid_url
zero_downtime_migrations
RUBY VERSION
ruby 2.6.5p114

View File

@ -6,6 +6,9 @@ import { edit, save } from "../../../../api/crud";
const IMMEDIATELY = -1;
// tslint:disable-next-line:no-null-keyword
const UNDEFINED = null as unknown as undefined;
const OTA_TIMES: Record<number, DropDownItem> = {
0: { label: "at Midnight", value: 0 },
1: { label: "at 1 AM", value: 1 },
@ -52,7 +55,7 @@ export const OtaTimeSelector = ({ onChange, value }: OtaTimeSelectorProps): JSX.
const cb = (ddi: DropDownItem) => {
const v = parseInt("" + ddi.value, 10);
onChange((v == IMMEDIATELY) ? null : v);
onChange((v == IMMEDIATELY) ? UNDEFINED : v);
};
const list = Object