File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,11 @@ onMounted(() => {
106106});
107107
108108function prepareChart () {
109- if ( objectIsEmpty (props .dataset )) {
109+ if ( ! Object . hasOwn ( props . dataset , ' rating ' ) || objectIsEmpty (props .dataset )) {
110110 error ({
111111 componentName: ' VueUiRating' ,
112- type: ' dataset'
112+ type: ' datasetAttribute' ,
113+ property: ' rating'
113114 })
114115 }
115116 units .value = [];
Original file line number Diff line number Diff line change @@ -34,10 +34,11 @@ onMounted(() => {
3434});
3535
3636function prepareChart () {
37- if ( objectIsEmpty (props .dataset )) {
37+ if ( ! Object . hasOwn ( props . dataset , ' rating ' ) || objectIsEmpty (props .dataset )) {
3838 error ({
3939 componentName: ' VueUiSmiley' ,
40- type: ' dataset'
40+ type: ' datasetAttribute' ,
41+ property: ' rating'
4142 })
4243 }
4344}
You can’t perform that action at this time.
0 commit comments