From 2894b21960e467509d3bbedb7c53a0fb4b95fdc0 Mon Sep 17 00:00:00 2001 From: alex <48489896+devnaumov@users.noreply.github.com> Date: Fri, 1 Mar 2024 12:23:54 +0100 Subject: [PATCH] CB-4779 mark rows and columns getters as computed values (#2430) * CB-4779 mark rows and columns getters as computed values * CB-4779 wrap keys in computed * CB-4779 remove unused import --------- Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com> --- .../Actions/ResultSet/ResultSetViewAction.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetViewAction.ts b/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetViewAction.ts index 986085afdf..20c0051994 100644 --- a/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetViewAction.ts +++ b/webapp/packages/plugin-data-viewer/src/DatabaseDataModel/Actions/ResultSet/ResultSetViewAction.ts @@ -5,7 +5,7 @@ * Licensed under the Apache License, Version 2.0. * you may not use this file except in compliance with the License. */ -import { action, makeObservable, observable } from 'mobx'; +import { action, computed, makeObservable, observable } from 'mobx'; import { DataTypeLogicalOperation, ResultDataFormat, SqlResultColumn } from '@cloudbeaver/core-sdk'; @@ -55,6 +55,10 @@ export class ResultSetViewAction extends DatabaseDataAction(this, { columnsOrder: observable, setColumnOrder: action, + rows: computed, + rowKeys: computed, + columns: computed, + columnKeys: computed, }); }