Clear provider update actions while updating (#4676)
This commit is contained in:
1 parent
eea3ea4c6f
commit
6afbed3c36
1 file changed
+4
@@ -68,6 +68,10 @@ function updateProviderUpdateToast(input: {
|
||||
title: input.view.title,
|
||||
description: input.view.description,
|
||||
timeout: 0,
|
||||
// Base UI merges toast updates with the existing toast. Explicitly clear
|
||||
// the prompt action so its guarded Update handler cannot linger as a
|
||||
// visible no-op while the update is running (or after it succeeds).
|
||||
actionProps: undefined,
|
||||
data: {
|
||||
hideCopyButton: true,
|
||||
...(input.view.dismissAfterVisibleMs !== undefined
|
||||
|
||||
Reference in new issue
Block a user