stable

Clone or download

Read-only

fix: Invalid prop: type check failed for prop "value".

Starting git #tuleap/stable/18ea41dbe0d47af9349c75f0fcf5e00d5840fa1a, whenever your project have custom properties which are not part of the current search, then there are warning displayed in the console (with `pnpm watch`) > [Vue warn]: Invalid prop: type check failed for prop "value". Expected String, got Undefined > > found in > > ---> <CriterionList> at scripts/document/components/AdvancedSearch/Criteria/CriterionList.vue > <SearchCriteriaPanel> at scripts/document/components/AdvancedSearch/SearchCriteriaPanel.vue > <SearchContainer> at scripts/document/components/AdvancedSearch/SearchContainer.vue > <Root> vue.runtime.esm.js:619 To avoid the issue, we now inititialize the search params based on both the query and the available criteria. Part of request #18402: Convert document plugin into typescript Change-Id: I980df4992caef546ab47a69f2ea803fdf0b1e8e3

Modified Files

Name
M plugins/document/scripts/document/components/AdvancedSearch/SearchCriteriaPanel.test.ts +4 −2 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchCriteriaPanel.vue +2 −3 Go to diff View file
M plugins/document/scripts/document/router/get-search-props-from-route.test.ts +71 −18 Go to diff View file
M plugins/document/scripts/document/router/get-search-props-from-route.ts +16 −10 Go to diff View file
M plugins/document/scripts/document/router/index.js +6 −1 Go to diff View file
M plugins/document/scripts/document/type.ts +1 −1 Go to diff View file