Now it even handles null case.
This commit is contained in:
@@ -92,7 +92,7 @@ export const PageNetwork: (() => Page) = () => new Page({
|
|||||||
new Widget.Label({
|
new Widget.Label({
|
||||||
className: "ssid",
|
className: "ssid",
|
||||||
halign: Gtk.Align.START,
|
halign: Gtk.Align.START,
|
||||||
label: getDecoded(ap.ssid.get_data()) ?? "Wi-Fi"
|
label: (getDecoded(ap.ssid.get_data()) ?? ap.ssid.get_data().toString()) ?? "Wi-Fi"
|
||||||
} as Widget.LabelProps),
|
} as Widget.LabelProps),
|
||||||
new Widget.Label({
|
new Widget.Label({
|
||||||
className: "status",
|
className: "status",
|
||||||
|
|||||||
Reference in New Issue
Block a user