Skip to content

Commit 9610eda

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
ANKUR DWIVEDI
authored and
ANKUR DWIVEDI
committed
addressed the feedbacks
1 parent f082846 commit 9610eda

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

sdk/projects/imagekitio-angular/src/lib/ik-image/ik-image.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export class IkImageComponent implements AfterViewInit, OnInit, OnChanges {
107107
}
108108

109109
getConfigObject(options: IkImageComponentOptions): any {
110-
const config: IkImageComponentOptions = {
111-
'transformation' : options.transformation
110+
const config = {
111+
transformation : options.transformation
112112
};
113113

114114
if (options.urlEndpoint) {
@@ -145,10 +145,9 @@ export class IkImageComponent implements AfterViewInit, OnInit, OnChanges {
145145

146146
namedNodeMapToObject(source: NamedNodeMap): Dict {
147147
let target: Dict = {};
148-
console.log({source})
149148
Object.keys(source).forEach(index => {
150-
const name = source[Number(index)].name;
151-
const value = source[Number(index)].value;
149+
const name = source[index].name;
150+
const value = source[index].value;
152151
target[name] = value;
153152
});
154153
return target;

sdk/projects/imagekitio-angular/src/lib/ik-video/ik-video.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export class IkVideoComponent implements OnInit {
4545
namedNodeMapToObject(source: NamedNodeMap): Dict {
4646
let target: Dict = {};
4747
Object.keys(source).forEach(index => {
48-
const name = source[Number(index)].name;
49-
const value = source[Number(index)].value;
48+
const name = source[index].name;
49+
const value = source[index].value;
5050
target[name] = value;
5151
});
5252
return target;
@@ -58,7 +58,7 @@ export class IkVideoComponent implements OnInit {
5858
}
5959

6060
getConfigObject(options: IkVideoComponentOptions): any {
61-
const config: IkVideoComponentOptions = {
61+
const config = {
6262
transformation: options.transformation,
6363
};
6464
if (options.urlEndpoint) {

0 commit comments

Comments
 (0)