Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (props) {
const {
embedType,
tokenType,
accessToken,
embedUrl,
embedId,
permissions,
pageName,
extraSettings,
dashboardId,
} = props;
return clean({
type: embedType,
tokenType: models.TokenType[tokenType],
accessToken,
embedUrl,
id: embedId,
pageName: pageName,
dashboardId: dashboardId,
permissions: models.Permissions[permissions],
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true,
...extraSettings,
},
});
}
return null;
};