mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 10:05:09 +03:00
Merge pull request #5319 from urbit/hm/fix-ship-null-ref
system-prefs: fixing non-null assertion errors on null rail
This commit is contained in:
commit
f65607429b
@ -13,7 +13,7 @@ export const SystemUpdatePrefs = () => {
|
||||
);
|
||||
const base = useVat('base');
|
||||
const otasEnabled = base && !(base.arak?.rail?.paused ?? true);
|
||||
const otaSource = base && base.arak.rail!.ship!;
|
||||
const otaSource = base && base.arak.rail?.ship;
|
||||
|
||||
const toggleBase = useCallback((on: boolean) => toggleOTAs('base', on), [toggleOTAs]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user