Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Dec 8, 2021
1 parent d63fc65 commit 9bb937e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions superset-frontend/src/dashboard/actions/dashboardState.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@ export function saveDashboardRequest(data, id, saveType) {
certified_by && certification_details ? certification_details : '',
css: css || '',
dashboard_title: dashboard_title || t('[ untitled dashboard ]'),
owners: ensureIsArray(owners)
? owners.map(o => (hasId(o) ? o.id : o))
: [],
owners: ensureIsArray(owners).map(o => (hasId(o) ? o.id : o)),
roles: !isFeatureEnabled(FeatureFlag.DASHBOARD_RBAC)
? undefined
: ensureIsArray(roles).map(r => (hasId(r) ? r.id : r)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import React, { useCallback, useEffect, useState } from 'react';
import { Form, Row, Col, Input } from 'src/common/components';
import { FormItem } from 'src/components/Form';
import jsonStringify from 'json-stringify-pretty-compact';
Expand Down

0 comments on commit 9bb937e

Please sign in to comment.