From e15c4cfa67854792aef822629b7fac0403fa6102 Mon Sep 17 00:00:00 2001 From: mikebender Date: Thu, 9 Nov 2023 14:12:23 -0500 Subject: [PATCH] Clean up based on review - Just use .slice() --- .../io/deephaven/web/client/api/widget/plot/JsFigure.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }