Dashboard isModified setting for tags

Đang mở
#703 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@jgclark đang làm issue này rồi.

Từ ngày 14/11/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug

When you get a few moments, can you have a look at this?

I have a perspective called ALL_ON that has every item enabled and a bunch of tags in it.

Image

About half the time that I switch to this perspective, without making any changes, I see it think it's modified:

Image

Log says:

JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged: Setting perspective.isModified because of changes to settings: 7 keys: showTagSection_#dbwDR, showTagSection_#waiting, showTagSection_@pierce, showTagSection_@kenna, showTagSection_@anique, showTagSection_@bev, showTagSection_@storey :: {
  "showTagSection_#dbwDR": true,
  "showTagSection_#waiting": true,
  "showTagSection_@pierce": true,
  "showTagSection_@kenna": true,
  "showTagSection_@anique": true,
  "showTagSection_@bev": true,
  "showTagSection_@storey": true
}
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: activePerspDefDashboardSettingsWithDefaults['showTagSection_#dbwDR']=undefined vs. sent to save: cleanedSettings['showTagSection_#dbwDR']=true
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: activePerspDefDashboardSettingsWithDefaults['showTagSection_#waiting']=undefined vs. sent to save: cleanedSettings['showTagSection_#waiting']=true
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: activePerspDefDashboardSettingsWithDefaults['showTagSection_@pierce']=undefined vs. sent to save: cleanedSettings['showTagSection_@pierce']=true
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: activePerspDefDashboardSettingsWithDefaults['showTagSection_@kenna']=undefined vs. sent to save: cleanedSettings['showTagSection_@kenna']=true
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: activePerspDefDashboardSettingsWithDefaults['showTagSection_@anique']=undefined vs. sent to save: cleanedSettings['showTagSection_@anique']=true
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: activePerspDefDashboardSettingsWithDefaults['showTagSection_@bev']=undefined vs. sent to save: cleanedSettings['showTagSection_@bev']=true
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: activePerspDefDashboardSettingsWithDefaults['showTagSection_@storey']=undefined vs. sent to save: cleanedSettings['showTagSection_@storey']=true
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: Setting isModified to true for perspective z_ALL_ON
JSLog: 2025-11-14 10:58:05 | DEBUG | doDashboardSettingsChanged :: Saving perspectiveSettings also

The front-end is sending all the TAG sections as true (which is correct), but the variable activePerspDefDashboardSettingsWithDefaults is not including those TAGs and therefore they don't match. So somewhere/somehow that activePerspDefDashboardSettingsWithDefaults needs to include the TAG sections so that the comparison works properly.

Can you please have a look?

Ngôn ngữ chính
JavaScript
Star
204
Fork
82
Merge trung bình
22 giờ 27 phút
Pull request đã merge (30 ngày)
3

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NotePlan/plugins

Tất cả issue của NotePlan/plugins

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.