diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-17 06:07:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-17 06:07:21 +0300 |
commit | bd37e94aecac7ef361a605bc1a5433415a4526cc (patch) | |
tree | 887c3bf3f833d88c2c3378ea9a1f31ee5698ae91 /app/assets/javascripts/graphql_shared/issuable_client.js | |
parent | 73c608b8c9e79319096fdbeb990dd5cb9ebf2b36 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/graphql_shared/issuable_client.js')
-rw-r--r-- | app/assets/javascripts/graphql_shared/issuable_client.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/javascripts/graphql_shared/issuable_client.js b/app/assets/javascripts/graphql_shared/issuable_client.js index adc6df09b30..01cc2fc3018 100644 --- a/app/assets/javascripts/graphql_shared/issuable_client.js +++ b/app/assets/javascripts/graphql_shared/issuable_client.js @@ -32,6 +32,16 @@ export const config = { }, }, }, + WorkItemWidgetProgress: { + fields: { + progress: { + // We want to show null progress as 0 as per https://gitlab.com/gitlab-org/gitlab/-/issues/386117 + read(existing) { + return existing === null ? 0 : existing; + }, + }, + }, + }, WorkItem: { fields: { // widgets policy because otherwise the subscriptions invalidate the cache |