fix: linkage rule saving empty value changes to static empty value (#5667)

* chore(ci): add retry

* fix:  linkage rule saving empty value changes to static empty value

---------

Co-authored-by: xilesun <2013xile@gmail.com>
This commit is contained in:
Katherine 2024-11-18 12:36:05 +08:00 committed by GitHub
parent c541435b09
commit ed5c6edec6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 13 deletions

View File

@ -149,19 +149,25 @@ jobs:
password: ${{ secrets.ALI_DOCKER_PASSWORD }} password: ${{ secrets.ALI_DOCKER_PASSWORD }}
- name: Build and push main - name: Build and push main
if: ${{ steps.get-info.outputs.branch == 'main' }} if: ${{ steps.get-info.outputs.branch == 'main' }}
uses: docker/build-push-action@v3 uses: Wandalen/wretry.action@master
with: with:
context: ./docker/nocobase attempt_limit: 3
file: ./docker/nocobase/Dockerfile action: docker/build-push-action@v3
platforms: linux/amd64,linux/arm64 with: |
push: true context: ./docker/nocobase
tags: nocobase/nocobase:main,nocobase/nocobase:latest,${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:main,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:latest,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/${{ steps.meta.outputs.tags }} file: ./docker/nocobase/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: nocobase/nocobase:main,nocobase/nocobase:latest,${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:main,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:latest,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/${{ steps.meta.outputs.tags }}
- name: Build and push next - name: Build and push next
if: ${{ steps.get-info.outputs.branch == 'next' }} if: ${{ steps.get-info.outputs.branch == 'next' }}
uses: docker/build-push-action@v3 uses: Wandalen/wretry.action@master
with: with:
context: ./docker/nocobase attempt_limit: 3
file: ./docker/nocobase/Dockerfile.next action: docker/build-push-action@v3
platforms: linux/amd64,linux/arm64 with: |
push: true context: ./docker/nocobase
tags: nocobase/nocobase:next,${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:next,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/${{ steps.meta.outputs.tags }} file: ./docker/nocobase/Dockerfile.next
platforms: linux/amd64,linux/arm64
push: true
tags: nocobase/nocobase:next,${{ steps.meta.outputs.tags }},${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/nocobase/nocobase:next,${{ secrets.ALI_DOCKER_PUBLIC_REGISTRY }}/${{ steps.meta.outputs.tags }}

View File

@ -155,7 +155,7 @@ export const ValueDynamicComponent = (props: ValueDynamicComponentProps) => {
onChange={(value) => { onChange={(value) => {
setMode(value); setMode(value);
setValue({ setValue({
mode: fieldValue?.mode, mode: value || fieldValue?.mode,
}); });
}} }}
> >