Skip to content

Commit

Permalink
Revert "fix", update UIF
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Jan 23, 2025
1 parent af7a29a commit b3315e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"sass-loader": "6.0.6",
"shortid": "2.2.8",
"style-loader": "0.20.2",
"superdesk-ui-framework": "^4.0.10",
"superdesk-ui-framework": "4.0.11",
"ts-loader": "3.5.0",
"typescript": "4.9.5",
"uuid": "8.3.1",
Expand Down
6 changes: 1 addition & 5 deletions scripts/apps/authoring-react/fields/datetime/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
} from 'superdesk-api';
import {gettext} from 'core/utils';
import {appConfig} from 'appConfig';
import {cloneDeep} from 'lodash';

type IProps = IEditorComponentProps<IDateTimeValueOperational, IDateTimeFieldConfig, IDateTimeUserPreferences>;

Expand All @@ -24,10 +23,7 @@ export class Editor extends React.PureComponent<IProps> {
text: gettext('Date time'),
hidden: true,
}}
onChange={(val) => {
// if value passed to onChange has the same reference, storageAdapter won't be triggered
this.props.onChange(cloneDeep(val));
}}
onChange={this.props.onChange}
value={this.props.value}
disabled={this.props.config.readOnly}
width={this.props.config.width}
Expand Down

0 comments on commit b3315e5

Please sign in to comment.