mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
CR2
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { isFunction } from 'lodash';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { react2angular } from 'react2angular';
|
||||
@@ -14,9 +13,7 @@ function toggleItem(event, item, callback) {
|
||||
action().then(() => {
|
||||
item.is_favorite = !savedIsFavorite;
|
||||
$rootScope.$broadcast('reloadFavorites');
|
||||
if (isFunction(callback)) {
|
||||
callback();
|
||||
}
|
||||
callback();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user