frontend BUGFIX schema key format send as id to remove the schema
The data are expected as JSON.
diff --git a/frontend/yang/schemas.service.ts b/frontend/yang/schemas.service.ts
index 92bfba5..91b916e 100644
--- a/frontend/yang/schemas.service.ts
+++ b/frontend/yang/schemas.service.ts
@@ -96,7 +96,7 @@
}
rmSchema( schema: Schema ) {
- let options = new RequestOptions( { body: schema.key } );
+ let options = new RequestOptions( { body: JSON.stringify(schema.key) } );
return this.http.delete( '/netopeer/inventory/schemas', options )
.map(( resp: Response ) => resp.json() )
.catch(( err: Response | any ) => Observable.throw( err ) );