From d59b5016debf7c12b940b70486682b76a6ed5497 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 30 Sep 2019 11:42:11 -0500 Subject: [PATCH] Fix feed inspector name editing --- iOS/Inspector/FeedInspectorView.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/iOS/Inspector/FeedInspectorView.swift b/iOS/Inspector/FeedInspectorView.swift index 79b22175a..95bc6b080 100644 --- a/iOS/Inspector/FeedInspectorView.swift +++ b/iOS/Inspector/FeedInspectorView.swift @@ -96,11 +96,15 @@ struct FeedInspectorView : View { var name: String { get { - return feed.editedName ?? feed.name ?? "" + return feed.editedName ?? "" } set { objectWillChange.send() - feed.editedName = newValue + if newValue.isEmpty { + feed.editedName = nil + } else { + feed.editedName = newValue + } } }