dulimarta / spherical-easel

https://spherical-easel.vercel.app
Other
3 stars 7 forks source link

Style Drawer: Style Issue Opening Panels #74

Closed dickinson0718 closed 5 months ago

dickinson0718 commented 5 months ago

1) Create a circle, 2) select it, 3) open the back panel, do nothing, 4) open the front by clicking on the icon (immediately to the right of the "Foreground Style" tool tip

I couldn't get the front panel to open (and after that back panel won't open again).

Here is the view after step 3 but before step 4.

Screenshot 2024-06-14 at 11 46 51 AM
dulimarta commented 5 months ago

There was a runtime error in one of the wathcers in FrontBackStyle.vue caused by the following if-statement:

if (Object.hasOwn(opt, 'dashArray')) {
  const arr = opt.dashArray!
}

Fix the issue by changing the above if-statement to

if (Array.isArray(opt.dashArray)) {
  const arr = opt.dashArray
}