+
Update Book Information * is a required field
-
+
Book updated successfully!
diff --git a/admin-portal/src/app/services/upload-image.service.ts b/admin-portal/src/app/services/upload-image.service.ts
index fda3161..cba2f8b 100644
--- a/admin-portal/src/app/services/upload-image.service.ts
+++ b/admin-portal/src/app/services/upload-image.service.ts
@@ -19,7 +19,7 @@ export class UploadImageService {
modify(bookId: number) {
console.log(this.filesToUpload);
- if (this.filesToUpload!=null) {
+ if (this.filesToUpload.length>0) {
this.makeFileRequest("http://localhost:8181/book/update/image?id=" + bookId, [], this.filesToUpload).then((result) => {
console.log(result);
}, (error) => {
diff --git a/bookstore-api/.idea/workspace.xml b/bookstore-api/.idea/workspace.xml
index 5b321a2..6be07a5 100644
--- a/bookstore-api/.idea/workspace.xml
+++ b/bookstore-api/.idea/workspace.xml
@@ -15,7 +15,18 @@
-
+
+
+
+
+
+
+
+
+
+
+
+