mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed code smell 'Default parameters should be last' reported by SonarQube.
This commit is contained in:
@@ -74,7 +74,7 @@ const weekdays = [
|
||||
];
|
||||
|
||||
export class ExceptionsSchema extends BaseUISchema {
|
||||
constructor(fieldOptions={}, initValues) {
|
||||
constructor(fieldOptions={}, initValues={}) {
|
||||
super({
|
||||
jexdate: null,
|
||||
jextime: null,
|
||||
@@ -159,7 +159,7 @@ const BooleanArrayFormatter = {
|
||||
};
|
||||
|
||||
export class DaysSchema extends BaseUISchema {
|
||||
constructor(fieldOptions={}, initValues) {
|
||||
constructor(fieldOptions={}, initValues={}) {
|
||||
super({
|
||||
...initValues,
|
||||
});
|
||||
@@ -201,7 +201,7 @@ export class DaysSchema extends BaseUISchema {
|
||||
}
|
||||
|
||||
export class TimesSchema extends BaseUISchema {
|
||||
constructor(fieldOptions={}, initValues) {
|
||||
constructor(fieldOptions={}, initValues={}) {
|
||||
super({
|
||||
...initValues,
|
||||
});
|
||||
@@ -235,7 +235,7 @@ export class TimesSchema extends BaseUISchema {
|
||||
}
|
||||
|
||||
export default class PgaJobScheduleSchema extends BaseUISchema {
|
||||
constructor(fieldOptions={}, initValues) {
|
||||
constructor(fieldOptions={}, initValues={}) {
|
||||
super({
|
||||
jscid: null,
|
||||
jscjobid: null,
|
||||
|
||||
@@ -12,7 +12,7 @@ import BaseUISchema from 'sources/SchemaView/base_schema.ui';
|
||||
import PgaJobScheduleSchema from '../../schedules/static/js/pga_schedule.ui';
|
||||
|
||||
export default class PgaJobSchema extends BaseUISchema {
|
||||
constructor(fieldOptions={}, getPgaJobStepSchema, initValues) {
|
||||
constructor(fieldOptions={}, getPgaJobStepSchema=()=>[], initValues={}) {
|
||||
super({
|
||||
jobname: '',
|
||||
jobid: undefined,
|
||||
|
||||
@@ -26,7 +26,7 @@ export function getNodePgaJobStepSchema(treeNodeInfo, itemNodeData) {
|
||||
);
|
||||
}
|
||||
export default class PgaJobStepSchema extends BaseUISchema {
|
||||
constructor(fieldOptions={}, initValues) {
|
||||
constructor(fieldOptions={}, initValues={}) {
|
||||
super({
|
||||
jstid: null,
|
||||
jstjobid: null,
|
||||
|
||||
Reference in New Issue
Block a user