mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 17:08:34 +00:00
app viewer fixes (#10173)
This commit is contained in:
parent
4a518d76b8
commit
b9c1682af3
2 changed files with 4 additions and 2 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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%' }}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue