Fix "Finish setup" icon remains if tasks are disabled without being completed (#52204)

* Fix "Finish setup" icon remains if tasks are disabled without being completed

* Add changelog

* Remove console
This commit is contained in:
Chi-Hsuan Huang 2024-10-23 08:34:48 +08:00 committed by GitHub
parent b69ba253f4
commit 6e0c754f64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fix "Finish setup" icon remains if tasks are disabled without being completed

View File

@ -180,7 +180,7 @@ export const ActivityPanel = ( { isEmbedded, query } ) => {
const setupList = activeSetupList && getTaskList( activeSetupList ); const setupList = activeSetupList && getTaskList( activeSetupList );
const isSetupTaskListHidden = setupList?.isHidden ?? false; const isSetupTaskListHidden = setupList ? setupList.isHidden : true; // If setupList is null, it means the setup task list is disabled.
const setupVisibleTasks = getVisibleTasks( setupList?.tasks || [] ); const setupVisibleTasks = getVisibleTasks( setupList?.tasks || [] );
const extendedTaskList = getTaskList( 'extended' ); const extendedTaskList = getTaskList( 'extended' );