Skip to content

Commit 4b19148

Browse files
committed
fix: fix bug preventing editing of apps with no icon image set
1 parent 537ba7f commit 4b19148

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/spotty-books-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@smartthings/cli": patch
3+
---
4+
5+
fix bug preventing interactive editing of apps with no icon image set

packages/cli/src/commands/apps/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default class AppUpdateCommand extends APICommand<typeof AppUpdateCommand
6868
appType, classifications, displayName, description,
6969
} = await this.client.apps.get(appId)
7070
const startingRequest: AppUpdateRequest = {
71-
appName, appType, classifications, displayName, description, singleInstance, iconImage, ui,
71+
appName, appType, classifications, displayName, description, singleInstance, iconImage: iconImage ?? {}, ui,
7272
}
7373
const propertyInputDefs: InputDefsByProperty<AppUpdateRequest> = {
7474
displayName: stringDef('Display Name'),

0 commit comments

Comments
 (0)