Skip to content

Commit

Permalink
RDISCROWD-6793 (4) hide empty helper component prop when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkle committed Jan 5, 2024
1 parent fc7fbba commit c3cd596
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
v-if='{{docUrl}}'
pyb-answer='{{pybAnswer}}'
:doc-url='{{docUrl}}'
:annotation-url='{{annotationUrl}}'
annotation-type='{{annotationType}}'
categories='{{categories}}'
annotation-type='{{annotationType}}'{{{annotationUrl}}}
></anco-loader>
5 changes: 3 additions & 2 deletions static/src/components/builder/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,12 @@ export default {
docUrl,
annotationType: 'BoundingBox',
requiredAnnotationOnLoad: !!annotationUrl,
categories: JSON.stringify(categories)
categories: JSON.stringify(categories),
annotationUrl: ''
};

if (annotationUrl) {
config.annotationUrl = annotationUrl;
config.annotationUrl = `\n :annotation-url='${annotationUrl}'`;
}

const output = Mustache.render(ancoTemplate, {
Expand Down
14 changes: 7 additions & 7 deletions static/src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion static/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@dtwebservices/task-presenter-components": "0.11.28",
"@dtwebservices/task-presenter-components": "0.11.30",
"@vue/eslint-config-standard": "^4.0.0",
"@vue/test-utils": "1.0.0-beta.29",
"axios": "^0.20.0",
Expand Down
8 changes: 4 additions & 4 deletions static/src/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@
"lodash" "^4.2.0"
"to-fast-properties" "^2.0.0"

"@dtwebservices/[email protected].28":
"integrity" "sha512-30KokiOpTWINUAo5GuKiF9q9WZz5Kd2R0UkBYReR1FjlwlBfrg2J14qJoh4efyIUlm/vGoKFPQx8C2mBOyR7ow=="
"resolved" "https://artprod.dev.bloomberg.com/artifactory/api/npm/npm-repos/@dtwebservices/task-presenter-components/-/@dtwebservices/task-presenter-components-0.11.28.tgz"
"version" "0.11.28"
"@dtwebservices/[email protected].30":
"integrity" "sha512-Z02zepX4O2670clZiW0MBMuL0HzvqoiIlcycCxAX85TvvLNYsa3rpKnKbwYVQzn3aD5tIX/hXnakN8zhVSmGEw=="
"resolved" "https://artprod.dev.bloomberg.com/artifactory/api/npm/npm-repos/@dtwebservices/task-presenter-components/-/@dtwebservices/task-presenter-components-0.11.30.tgz"
"version" "0.11.30"
dependencies:
"lodash.clonedeep" "^4.5.0"
"lodash.flow" "^3.5.0"
Expand Down

0 comments on commit c3cd596

Please sign in to comment.