Skip to content

Commit 5c398a6

Browse files
author
Uttam Rabadiya
committed
Fixed Lint Errors.
1 parent 5230f8d commit 5c398a6

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"component library"
1919
],
2020
"license": "MIT",
21-
"version": "2.1.4",
21+
"version": "2.1.6",
2222
"scripts": {
2323
"serve": "vue-cli-service serve",
2424
"build": "vue-cli-service build",
@@ -31,7 +31,7 @@
3131
"dependencies": {
3232
"@ckeditor/ckeditor5-build-classic": "^24.0.0",
3333
"@ckeditor/ckeditor5-vue2": "^1.0.5",
34-
"@hulkapps/vue-plyr": "^7.0.1",
34+
"@hulkapps/vue-plyr": "^7.0.2",
3535
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
3636
"@vue/babel-preset-jsx": "^1.1.1",
3737
"apexcharts": "^3.26.3",

src/components/PMediaCard/PMediaCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import {Component, Prop, Vue} from 'vue-property-decorator';
6565
import {classNames} from '@/utilities/css';
6666
import {PCard} from '@/components/PCard';
6767
import {DestructableAction, DisableableAction, IconableAction, LoadableAction, Video} from '@/types';
68-
import VuePlyr from '@hulkapps/vue-plyr/dist/vue-plyr.ssr.js';
68+
import VuePlyr from '@hulkapps/vue-plyr';
6969
import '@hulkapps/vue-plyr/dist/vue-plyr.css';
7070
import {PStack, PStackItem} from '@/components/PStack';
7171
import {PHeading} from '@/components/PHeading';

src/components/PPopover/components/PPositionedOverlay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
252252
public getBoundingClientRect(element: HTMLElement) {
253253
if (!element) {
254-
return false;
254+
return {};
255255
}
256256
const rect = element.getBoundingClientRect();
257257
return {

src/components/PResourceList/PResourceList.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export default class PResourceList extends Vue {
6262
*/
6363
@Prop({type: Array, default: () => []}) public selected!: number[];
6464
65-
6665
/**
6766
* Whether or not there are more items than currently set
6867
* on the items prop. Determines whether or not to set
@@ -93,15 +92,16 @@ export default class PResourceList extends Vue {
9392
public showEmptySearchState = !this.showEmptyState && !this.itemsExist && !this.loading;
9493
9594
public count() {
96-
if(typeof this.$scopedSlots.default === 'function' && this.$scopedSlots.default()) {
97-
return this.$scopedSlots.default().filter((vnode) => {
98-
return vnode.tag !== undefined;
99-
}).length
95+
if (typeof this.$scopedSlots !== 'undefined'
96+
&& typeof this.$scopedSlots.default === 'function'
97+
&& this.$scopedSlots.default({})) {
98+
const slots = this.$scopedSlots.default({});
99+
return slots ? slots.filter((vnode) => vnode.tag !== undefined).length : 0;
100100
}
101-
if(this.$slots.default) {
101+
if (this.$slots.default) {
102102
return this.$slots.default.filter((vnode) => {
103103
return vnode.tag !== undefined;
104-
}).length
104+
}).length;
105105
}
106106
107107
return 0;

src/components/PResourceList/components/PCheckableButton.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export default class PCheckableButton extends Vue {
6868
}
6969
7070
public handleToggleAll() {
71-
console.log('toggle-all', this.checkedAll);
7271
this.$emit('toggle-all', this.checkedAll);
7372
}
7473

0 commit comments

Comments
 (0)