app viewer fixes (#10173)

This commit is contained in:
Rudhra Deep Biswas 2024-06-26 11:43:19 +05:30 committed by GitHub
parent 4a518d76b8
commit b9c1682af3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -818,6 +818,8 @@ export const Container = ({
? 'Connect to your data source or use our sample data source to start playing around!'
: 'Connect to a data source to be able to create a query';
const showEmptyContainer = !appLoading && !isDragging && mode !== 'view';
return (
<ContainerWrapper
showComments={showComments}
@ -930,7 +932,7 @@ export const Container = ({
/>
</div>
</div>
{Object.keys(boxes).length === 0 && !appLoading && !isDragging && (
{Object.keys(boxes).length === 0 && showEmptyContainer && (
<div style={{ paddingTop: '10%' }}>
<div className="row empty-box-cont">
<div className="col-md-4 dotted-cont">

View file

@ -73,7 +73,7 @@ export default function EditorHeader({
: '';
setAppPreviewLink(appVersionPreviewLink);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [slug, currentVersionId, editingVersion]);
}, [slug, currentVersionId, editingVersion, pageHandle]);
return (
<div className={cx('header', { 'dark-theme theme-dark': darkMode })} style={{ width: '100%' }}>