Skip to content

Commit 7bb79c4

Browse files
committed
requested changes
1 parent 99f8a4b commit 7bb79c4

5 files changed

Lines changed: 5 additions & 21 deletions

File tree

packages/code-studio/src/settings/FormattingSectionContent.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import debounce from 'lodash.debounce';
1111
import classNames from 'classnames';
1212
import { Button, Checkbox } from '@deephaven/components';
1313
import {
14-
DateTimeColumnFormatter,
1514
IntegerColumnFormatter,
1615
DecimalColumnFormatter,
1716
TableUtils,
@@ -63,7 +62,7 @@ interface FormattingSectionContentState {
6362
showTimeZone: boolean;
6463
showTSeparator: boolean;
6564
timeZone: string;
66-
defaultDateTimeFormat?: string;
65+
defaultDateTimeFormat: string;
6766
defaultDecimalFormatOptions: FormatOption;
6867
defaultIntegerFormatOptions: FormatOption;
6968
truncateNumbersWithPound: boolean;
@@ -76,19 +75,6 @@ export class FormattingSectionContent extends PureComponent<
7675
> {
7776
static defaultProps = {
7877
scrollTo: (): void => undefined,
79-
defaults: {
80-
defaultDateTimeFormat:
81-
DateTimeColumnFormatter.DEFAULT_DATETIME_FORMAT_STRING,
82-
defaultDecimalFormatOptions: {
83-
defaultFormatString: DecimalColumnFormatter.DEFAULT_FORMAT_STRING,
84-
},
85-
defaultIntegerFormatOptions: {
86-
defaultFormatString: IntegerColumnFormatter.DEFAULT_FORMAT_STRING,
87-
},
88-
showTimeZone: false,
89-
showTSeparator: true,
90-
timeZone: DateTimeColumnFormatter.DEFAULT_TIME_ZONE_ID,
91-
},
9278
};
9379

9480
static inputDebounceTime = 250;

packages/dashboard-core-plugins/src/linker/Linker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ interface StateProps {
5555
dh: DhType;
5656
isolatedLinkerPanelId?: string;
5757
links: Link[];
58-
timeZone?: string;
58+
timeZone: string;
5959
}
6060

6161
interface OwnProps {

packages/dashboard-core-plugins/src/panels/ConsolePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ interface ConsolePanelProps extends DashboardPanelProps {
6060

6161
sessionWrapper: SessionWrapper;
6262

63-
timeZone?: string;
63+
timeZone: string;
6464
unzip?: (file: File) => Promise<JSZipObject[]>;
6565
plugins: PluginModuleMap;
6666
}

packages/redux/src/actions.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ export const setDefaultWorkspaceSettings: PayloadActionCreator<
5252
WorkspaceSettings
5353
> = settings => ({
5454
type: SET_DEFAULT_WORKSPACE_SETTINGS,
55-
payload: {
56-
...settings,
57-
},
55+
payload: settings,
5856
});
5957

6058
export const setWorkspaceStorage: PayloadActionCreator<

packages/redux/src/reducers/defaultWorkspaceSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* The Server Configs Values retrieved from the Server
2+
* Default values for workspace settings. Used when the user has not modified a setting yet.
33
*/
44
import { SET_DEFAULT_WORKSPACE_SETTINGS } from '../actionTypes';
55
import { replaceReducer } from './common';

0 commit comments

Comments
 (0)