Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v 2.0.4 - Preset Objektdaten Problem #779

Open
Bernd9000 opened this issue Jan 23, 2025 · 0 comments
Open

v 2.0.4 - Preset Objektdaten Problem #779

Bernd9000 opened this issue Jan 23, 2025 · 0 comments

Comments

@Bernd9000
Copy link

Bernd9000 commented Jan 23, 2025

Neu angelegte Preset haben in den Objektdaten statt dem Namen "lines" nun den Namen "l"
Funktioniert zwar trotzdem in der aktuellen Version, macht aber Probleme wenn man zu einer älteren Adapterversion zurück möchte.
Hier sollte man bei dem Schlüsselwort "lines" bleiben um die Abwärtskompatibilität zu gewährleisten.

Beispiel Teilausschnitt (eine Zeile unter "data":

{
  "_id": "echarts.0.preset_2",
  "common": {
    "name": "preset_2"
  },
  "native": {
    "url": "",
    "data": {
      "l": [
        {
          "name": "",
          "id": "",
          "instance": "",
          "thickness": 2,
          "chartType": "line",
          "aggregate": "minmax",
          "isBoolean": false,
          "symbolSize": 3,
          "validTime": 35
        }
      ],

Fehlermeldung in den älteren Versionen:

TypeError: this.props.presetData.lines is undefined
    render PresetTabs.js:1233
    React 8
    y scheduler.production.min.js:13
    L scheduler.production.min.js:14

To Reproduce
Steps to reproduce the behavior:

  1. Neuen Preset erstellen
  2. Im IOB unter Objekte : echarts.0 die Objektdaten des neuen Preset aufrufen

Versions:

  • 2.0.4
  • JS-Controller version: 7.0.6
  • Node version: 20.18.2
  • Operating system: Windows 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant