fix(explore): save chart not working (#12178)

* fix(explore): save to dashboard not working

* fix test
This commit is contained in:
Ville Brofeldt
2020-12-22 23:18:36 +02:00
committed by GitHub
parent a52031a55e
commit 41fac6b0d9
3 changed files with 4 additions and 6 deletions

View File

@@ -145,10 +145,8 @@ describe('SaveModal', () => {
sinon.stub(defaultProps.actions, 'saveSlice').callsFake(() =>
Promise.resolve({
data: {
dashboard_url: 'http://localhost/mock_dashboard/',
slice: { slice_url: '/mock_slice/' },
},
dashboard_url: 'http://localhost/mock_dashboard/',
slice: { slice_url: '/mock_slice/' },
}),
);
});