10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/AddResource.vue
@@ -51,8 +51,8 @@ if ( enteredTitle.trim() === '' || enteredDescription.trim() || enteredUrl.trim() enteredDescription.trim() === '' || enteredUrl.trim() === '' ) { this.inputIsInvalid = true; return; 10 - course project/xno-prj-cmp-01-starting-setup/src/components/learning-resource/TheResources.vue
@@ -75,10 +75,10 @@ this.selectedTab = 'stored-resources'; }, removeResource(resId) { this.storedResouces = this.storedResouces.filter( (res) => res.id !== resId const resIndex = this.storedResouces.findIndex( (res) => res.id === resId ); console.log(this.storedResouces.length); this.storedResouces.splice(resIndex, 1); }, }, };