customized-fabric 1.9.4 → 1.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -223,8 +223,9 @@ const asyncGetObject = async (object, options) => {
223
223
  ...object,
224
224
  isOriginal: options?.isOriginal,
225
225
  });
226
- if (object?.calendarSettings?.url) {
227
- await calendarObject?.loadImage?.(object?.calendarSettings?.url);
226
+ const url = object?.calendarSettings?.url;
227
+ if (url) {
228
+ await calendarObject?.loadImage?.(url);
228
229
  }
229
230
  return calendarObject;
230
231
  }
@@ -233,8 +234,9 @@ const asyncGetObject = async (object, options) => {
233
234
  ...object,
234
235
  isOriginal: options?.isOriginal,
235
236
  });
236
- if (object?.qrCodeSettings?.url) {
237
- await qrCodeObject?.loadImage?.(object?.calendarSettings?.url);
237
+ const url = object?.qrCodeSettings?.url;
238
+ if (url) {
239
+ await qrCodeObject?.loadImage?.(url);
238
240
  }
239
241
  return qrCodeObject;
240
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",