diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java b/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java index 9e4c2ddf484..04f2a7989a7 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java @@ -166,7 +166,7 @@ public String toString() { private JsChart[] charts; - private String[] errors; + private JsArray errors; private JsTable[] tables; private Map plotHandlesToTables; @@ -203,7 +203,7 @@ public Promise refetch() { .map(chartDescriptor -> new JsChart(chartDescriptor, this)).toArray(JsChart[]::new); JsObject.freeze(charts); - errors = JsObject.freeze(descriptor.getErrorsList().asList().toArray(new String[0])); + errors = JsObject.freeze(descriptor.getErrorsList().slice()); return this.tableFetch.fetch(this, response); }).then(tableFetchData -> { @@ -329,7 +329,7 @@ public JsChart[] getCharts() { } @JsProperty - public String[] getErrors() { + public JsArray getErrors() { return errors; }